IAssetProvider
Contains methods for accessing assets of a given type stored within an
object.
public interface IAssetProvider#Methods
#GetAssetsOfType<T>()
Gets a collection of assets of type
T from
the target.public IEnumerable<T> GetAssetsOfType<T>()
where T : UnityEngine.Object;Type Parameters
TThe type of the asset.
Returns IEnumerable: A collection of assets. This collection may be
empty.
#TryGetAsset<T>(T?)
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;Type Parameters
TThe type of the assets.
Parameters
resultTOn return, the fetched asset, ornull.
Returns Boolean: true if an asset was fetched; false otherwise.
Generated from Yarn Spinner for Unity 3.3.