Synced
Assets.Load
Section titled “Assets.Load”
- Loads the canonical asset with a persistent identity in the current session.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Assets
Scope: Runtime
Declaration
Section titled “Declaration”public static TAsset InnoEngine.Assets.Assets.Load<TAsset>(System.Guid persistentId) where TAsset : InnoEngine.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: The required asset contract.
Parameters
Section titled “Parameters”Parameter persistentId: The non-empty persistent asset identity.
Returns
Section titled “Returns”The canonical compatible asset owned by the current lookup.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when no asset lookup is active, the asset does not exist, or its type is incompatible.