ObjectRef

gdext.internal.engine.ObjectRef
object ObjectRef

Internal construction helper for live engine-object references, now that an object is held as its plain wrapper type (Node2D, PlayerStats) rather than a Gd[T]. The user-facing entry point is gdext.api.Gd.create, which forwards here.

(OBJECT-Variant marshalling givens live in object GodotScriptClass so they are found by implicit search for any T <: GodotScriptClass.)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ObjectRef.type

Members list

Value members

Concrete methods

def construct[T <: GodotScriptClass](using meta: ClassMeta[T]): T

Construct a brand-new engine object of class T. For reference-counted classes this initialises the first reference (init_ref), which the returned wrapper owns (see Ownership).

Construct a brand-new engine object of class T. For reference-counted classes this initialises the first reference (init_ref), which the returned wrapper owns (see Ownership).

Attributes