feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -7,7 +7,7 @@
|
|||
A simplified interface to a scene file. Provides access to operations and checks that can be performed on the scene resource itself.
|
||||
Can be used to save a node to a file. When saving, the node as well as all the nodes it owns get saved (see [member Node.owner] property).
|
||||
[b]Note:[/b] The node doesn't need to own itself.
|
||||
[b]Example of loading a saved scene:[/b]
|
||||
[b]Example:[/b] Load a saved scene:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
# Use load() instead of preload() if the path isn't known at compile-time.
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
AddChild(scene);
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
[b]Example of saving a node with different owners:[/b] The following example creates 3 objects: [Node2D] ([code]node[/code]), [RigidBody2D] ([code]body[/code]) and [CollisionObject2D] ([code]collision[/code]). [code]collision[/code] is a child of [code]body[/code] which is a child of [code]node[/code]. Only [code]body[/code] is owned by [code]node[/code] and [method pack] will therefore only save those two nodes, but not [code]collision[/code].
|
||||
[b]Example:[/b] Save a node with different owners. The following example creates 3 objects: [Node2D] ([code]node[/code]), [RigidBody2D] ([code]body[/code]) and [CollisionObject2D] ([code]collision[/code]). [code]collision[/code] is a child of [code]body[/code] which is a child of [code]node[/code]. Only [code]body[/code] is owned by [code]node[/code] and [method pack] will therefore only save those two nodes, but not [code]collision[/code].
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
# Create the objects.
|
||||
|
|
@ -103,12 +103,6 @@
|
|||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="_bundled" type="Dictionary" setter="_set_bundled_scene" getter="_get_bundled_scene" default="{ "conn_count": 0, "conns": PackedInt32Array(), "editable_instances": [], "names": PackedStringArray(), "node_count": 0, "node_paths": [], "nodes": PackedInt32Array(), "variants": [], "version": 3 }">
|
||||
A dictionary representation of the scene contents.
|
||||
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.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="GEN_EDIT_STATE_DISABLED" value="0" enum="GenEditState">
|
||||
If passed to [method instantiate], blocks edits to the scene state.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue