Class ArrayItem
Hierarchy
- ArrayItem
Index
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: ArrayLike<T> | undefined
The array to get the item from
-
index: number | undefined
The index to the array
Returns T
The array item
-
Helper class for working with arrays when loading the glTF asset