Arr

gdext.builtin.Arr
See theArr companion class
object Arr

Attributes

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

Members list

Value members

Concrete methods

def empty[A](using ToVariant[A], FromVariant[A]): Arr[A]

A new, empty Arr[A] with a heap-owned backing handle.

A new, empty Arr[A] with a heap-owned backing handle.

Attributes

def emptyTyped[A](elemType: GDExtensionVariantType, className: String)(using ToVariant[A], FromVariant[A]): Arr[A]

A new, empty Godot-typed Arr[A] — the backing Array carries its element type, so the inspector fills added rows with the type default (e.g. "") rather than <null>. elemType/className come from the field's ExportType[A] at the call site (see DefaultValue.arrDefault).

A new, empty Godot-typed Arr[A] — the backing Array carries its element type, so the inspector fills added rows with the type default (e.g. "") rather than <null>. elemType/className come from the field's ExportType[A] at the call site (see DefaultValue.arrDefault).

Attributes

def fromHandle[A](src: GDExtensionTypePtr)(using ToVariant[A], FromVariant[A]): Arr[A]

Wrap an Array handle the engine wrote into src (e.g. a ptrcall return buffer) by copying its 8 bytes into heap storage, so the resulting Arr outlives the caller's buffer. Used by hand-written engine wrappers that return a typed Array (which the generator skips).

Wrap an Array handle the engine wrote into src (e.g. a ptrcall return buffer) by copying its 8 bytes into heap storage, so the resulting Arr outlives the caller's buffer. Used by hand-written engine wrappers that return a typed Array (which the generator skips).

Attributes

Givens

Givens

given fromVariant[A](using ToVariant[A], FromVariant[A]): FromVariant[Arr[A]]
given toVariant[A]: ToVariant[Arr[A]]