Synced
AssetDatabase.TryLoad
Section titled “AssetDatabase.TryLoad”
- Tries to load the canonical asset at one catalog path.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets
Declaration
Section titled “Declaration”public bool Inno.Assets.AssetDatabase.TryLoad<TAsset>(Inno.Assets.AssetPath path, out TAsset? asset) where TAsset : Inno.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: The required runtime asset contract.
Parameters
Section titled “Parameters”Parameter path: The mount-qualified logical catalog path.
Parameter asset: Receives the canonical compatible asset when available.
Returns
Section titled “Returns”true when the deployed catalog contains a compatible asset; otherwise, false.
Exceptions
Section titled “Exceptions”Exception T:System.ObjectDisposedException: Thrown when this database has been disposed.