Merge pull request #103418 from aaronfranke/adv-imp-attach-script

Allow attaching scripts to nodes in the Advanced Import Settings dialog
This commit is contained in:
Rémi Verschelde
2025-06-11 11:19:59 +02:00
4 changed files with 62 additions and 22 deletions

View File

@ -80,6 +80,9 @@
<member name="nodes/root_scale" type="float" setter="" getter="" default="1.0">
The uniform scale to use for the scene root. The default value of [code]1.0[/code] will not perform any rescaling. See [member nodes/apply_root_scale] for details of how this scale is applied.
</member>
<member name="nodes/root_script" type="Script" setter="" getter="" default="null">
If set to a valid script, attaches the script to the root node of the imported scene. If the type of the root node is not compatible with the script, the root node will be replaced with a type that is compatible with the script. This setting can also be used on other non-mesh nodes in the scene to attach scripts to them.
</member>
<member name="nodes/root_type" type="String" setter="" getter="" default="&quot;&quot;">
Override for the root node type. If empty, the root node will use what the scene specifies, or [Node3D] if the scene does not specify a root type. Using a node type that inherits from [Node3D] is recommended. Otherwise, you'll lose the ability to position the node directly in the 3D editor.
</member>