Class ArrayItem
Hierarchy
- ArrayItem
Index
Constructors
Methods
Constructors
constructor
Returns ArrayItem
Methods
Static AssignSearch playground for Assign
Assign an
index
field to each item of the given array.Parameters
Optional array: IArrayItem[]
The array of items
Returns void
Static GetSearch playground for Get
Gets an item from the given array.
Type Parameters
T
Parameters
context: string
The context when loading the asset
array: undefined | ArrayLike<T>
The array to get the item from
index: undefined | number
The index to the array
Returns T
The array item
Helper class for working with arrays when loading the glTF asset