Table of Contents

Method AcquireSubAsset

Namespace
GrindFest
Assembly
GrindFest.dll

AcquireSubAsset<T>(string, string, Action<T>)

AcquireAsset<T>(string, Action<T>) for a clip that lives inside a model file, e.g. Clip("Assets/…/Villager@Fishing01.fbx", "Villager@Fishing01").

Sub-assets need their own acquire as the right type: a sub-asset is not satisfied by loading its parent as Object (the cache key is address|type|name), so the skill has to ask for the clip.

protected IEnumerator AcquireSubAsset<T>(string parentAddress, string objectName, Action<T> onReady) where T : Object

Parameters

parentAddress string
objectName string
onReady Action<T>

Returns

IEnumerator

Type Parameters

T