class

Godot::PackedScene

Inherits Godot::Resource < Godot::RefCounted < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

can_instantiate
Source
get_state
Source
instantiate(edit_state : Int64) : Node

Instantiates the scene's node hierarchy.

Source
instantiate(as type : T.class, edit_state : Int64 = 0_i64) : T forall T

Instantiates the scene and casts directly to wrapper type T (named argument alias)

Source
instantiate

Convenience zero-argument instantiate defaulting edit_state to 0

Source
instantiate_as(type : T.class, edit_state : Int64 = 0_i64) : T forall T

Instantiates the scene and casts directly to wrapper type T

Source
pack(path : Node) : Int64

Packs the node and all owned sub-nodes into this PackedScene via reflection.

Source

Nested types