TryLoadAsset<T>(AssetKey, out T)
Tries to resolve the asset for a key without loading asynchronously.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Localization.Providers
- Assembly: UnityEngine.LocalizationRuntimeModule
TryLoadAsset<T>(AssetKey, T)
bool TryLoadAsset<T>(AssetKey key, out T asset) where T : Object
Parameters
Returns
Type | Description |
|---|---|
| bool | |
Remarks
Return and set when the asset resolves immediately. Return on a miss so the provider chain continues to the next provider, and leave as . The asset type is , or AssetKey.Type when is the base Object, mirroring IAsyncAssetProvider.LoadAssetAsync.
trueassetfalseassetnullTT