Last updated 24 days ago
Was this helpful?
Method in
Attempts to fetch an asset of type T from the object.
T
public bool TryGetAsset<T>([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] out T? result) where T : UnityEngine.Object;
T result
On return, the fetched asset, or null .
null
The type of the assets.
true if an asset was fetched; false otherwise.
true
false