IAssetProvider.TryGetAsset(T?)
Method in IAssetProvider
Summary
Attempts to fetch an asset of type T from the
object.
public bool TryGetAsset<T>([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] out T? result)
where T : UnityEngine.Object;Parameters
| Name | Description |
|---|---|
T result | On return, the fetched asset, or null . |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the assets. |
Returns
true if an asset was fetched; false otherwise.