Skip to content

Commit c2720f8

Browse files
authored
Merge pull request #11749 from Calinou/tscn-node-paths
Document `node_paths` field in TSCN file format
2 parents b48a0bf + 4e6b99f commit c2720f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine_details/file_formats/tscn.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Other valid keywords include:
111111
- ``owner``
112112
- ``index`` (sets the order of appearance in the tree; if absent, inherited nodes will take precedence over plain ones)
113113
- ``groups``
114+
- ``node_paths`` (lists names of properties exported as a Node type, but referenced as a NodePath in the file)
114115

115116
The first node in the file, which is also the scene root, must **not** have a
116117
``parent="Path/To/Node"`` entry in its heading. All scene files should have
@@ -158,9 +159,10 @@ collision, visuals (mesh + light) and a camera parented to the RigidBody3D:
158159
mesh = SubResource("SphereMesh_4w3ye")
159160
surface_material_override/0 = SubResource("StandardMaterial3D_k54se")
160161

161-
[node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=1581292810]
162+
[node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=1581292810 node_paths=PackedStringArray("follow_node")]
162163
light_color = Color(1, 0.698039, 0.321569, 1)
163164
omni_range = 10.0
165+
follow_node = NodePath("..")
164166

165167
[node name="Camera3D" type="Camera3D" parent="." unique_id=795715540]
166168
transform = Transform3D(1, 0, 0, 0, 0.939693, 0.34202, 0, -0.34202, 0.939693, 0, 1, 3)

0 commit comments

Comments
 (0)