Skip to content

Commit 1fc9f10

Browse files
committed
Minor PackedScene documentation improvements
- Updated _bundled description to refer to "names" key instead of "rnames" - Added description for pack method
1 parent d4f726f commit 1fc9f10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/classes/PackedScene.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@
9999
<return type="int" enum="Error" />
100100
<param index="0" name="path" type="Node" />
101101
<description>
102-
Pack will ignore any sub-nodes not owned by given node. See [member Node.owner].
102+
Packs the [param path] node, and all owned sub-nodes, into this [PackedScene]. Any existing data will be cleared. See [member Node.owner].
103103
</description>
104104
</method>
105105
</methods>
106106
<members>
107107
<member name="_bundled" type="Dictionary" setter="_set_bundled_scene" getter="_get_bundled_scene" default="{ &quot;conn_count&quot;: 0, &quot;conns&quot;: PackedInt32Array(), &quot;editable_instances&quot;: [], &quot;names&quot;: PackedStringArray(), &quot;node_count&quot;: 0, &quot;node_paths&quot;: [], &quot;nodes&quot;: PackedInt32Array(), &quot;variants&quot;: [], &quot;version&quot;: 3 }">
108108
A dictionary representation of the scene contents.
109-
Available keys include "rnames" and "variants" for resources, "node_count", "nodes", "node_paths" for nodes, "editable_instances" for paths to overridden nodes, "conn_count" and "conns" for signal connections, and "version" for the format style of the PackedScene.
109+
Available keys include "names" and "variants" for resources, "node_count", "nodes", "node_paths" for nodes, "editable_instances" for paths to overridden nodes, "conn_count" and "conns" for signal connections, and "version" for the format style of the PackedScene.
110110
</member>
111111
</members>
112112
<constants>

0 commit comments

Comments
 (0)