Method RegisterUnloadLater
RegisterUnloadLater(Object)
Registers an asset acquired through Load(string) for automatic unloading when this graph execution ends.
public void RegisterUnloadLater(Object resource)
Parameters
resourceObjectThe loaded asset to unload later.
Remarks
Call this immediately after loading an execution-owned asset from Resources. Registration transfers unload responsibility to the graph, so the node must not call UnityEngine.Resources.UnloadAsset(UnityEngine.Object) afterward. Do not use this for instantiated or generated objects; register those with RegisterDestroyLater(Object).