Options
All
  • Public
  • Public/Protected
  • All
Menu

Helper class for working with arrays when loading the glTF asset

Hierarchy

  • ArrayItem

Index

Constructors

Methods

Constructors

Methods

  • Assign an index field to each item of the given array.

    Parameters

    Returns void

  • Get<T>(context: string, array: undefined | ArrayLike<T>, index: undefined | number): T
  • 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

  • TryGet<T>(array: undefined | ArrayLike<T>, index: undefined | number): Nullable<T>
  • Gets an item from the given array or returns null if not available.

    Type Parameters

    • T

    Parameters

    • array: undefined | ArrayLike<T>

      The array to get the item from

    • index: undefined | number

      The index to the array

    Returns Nullable<T>

    The array item or null

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme