GodotScriptClass

gdext.internal.register.GodotScriptClass
See theGodotScriptClass companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Givens

Givens

given fromVariant[T <: GodotScriptClass](using meta: ClassMeta[T]): FromVariant[T]

Decoding borrows: the Variant's container keeps the object alive. Call refInc() on the result to hold it longer.

Decoding borrows: the Variant's container keeps the object alive. Call refInc() on the result to hold it longer.

Attributes

OBJECT-Variant marshalling for a live engine reference, so an engine object held as its plain wrapper type can be a gdext.builtin.Dict / gdext.builtin.Arr element. A null reference round-trips as an empty (NIL) object Variant. These givens live in this base companion so implicit search finds them for any T <: GodotScriptClass (every engine/user class) without an import. The from side preserves instance identity.

OBJECT-Variant marshalling for a live engine reference, so an engine object held as its plain wrapper type can be a gdext.builtin.Dict / gdext.builtin.Arr element. A null reference round-trips as an empty (NIL) object Variant. These givens live in this base companion so implicit search finds them for any T <: GodotScriptClass (every engine/user class) without an import. The from side preserves instance identity.

Attributes