Skip to main content

Class: ChildTrait

traits.ChildTrait

Important trait

Entity can become a child of any other container/parent.

Constructors

constructor

new ChildTrait()

ChildTrait Properties

idx

idx: number


parent

parent: ParentTrait

ChildTrait Accessors

idxPath

get idxPath(): number[]

Returns

number[]

array of indexes for this entity access

ChildTrait Methods

isInteractive

isInteractive(): boolean

Points out if this element can be target of any interaction

Returns

boolean