ObjectVariant

gdext.internal.engine.ObjectVariant
object ObjectVariant

Marshalling for OBJECT-typed Variants (node / resource / scene references).

Unlike value builtins, the "type pointer" for an OBJECT is a pointer to the 8-byte engine object handle. We write/read that handle through the cached per-type Variant constructors, exactly as ToVariant's fromBuiltin does for value types. A null handle round-trips as a NIL/empty object Variant.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Read the raw object handle out of an OBJECT Variant (null if empty).

Read the raw object handle out of an OBJECT Variant (null if empty).

Attributes

Build an OBJECT Variant in dest from a raw object handle (may be null).

Build an OBJECT Variant in dest from a raw object handle (may be null).

Attributes