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

NameDescription
T resultOn return, the fetched asset, or null .

Type Parameters

NameDescription
TThe type of the assets.

Returns

true if an asset was fetched; false otherwise.