API

Function GetFlowGraphAssetWithType

  • Returns the asset with the given index and type from the assets context.

    Type Parameters

    Parameters

    • assetsContext: IAssetContainer

      The assets context to get the asset from

    • type: T

      The type of the asset

    • index: number

      The index of the asset

    • OptionaluseIndexAsUniqueId: boolean

      If set to true, instead of the index in the array it will search for the unique id of the asset.

    Returns Nullable<AssetType<T>>

    The asset or null if not found