Function GetFlowGraphAssetWithType
-
GetFlowGraphAssetWithType<T extends FlowGraphAssetType>(
assetsContext: IAssetContainer,
type: T,
index: number,
useIndexAsUniqueId?: boolean,
): Nullable<AssetType<T>>Type Parameters
- T extends FlowGraphAssetType
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: booleanIf 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
Returns the asset with the given index and type from the assets context.