Table of Contents

Method RegisterUnloadLater

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

RegisterUnloadLater(Object)

Registers an asset acquired through Load(string) for automatic unloading when this graph execution ends.

public void RegisterUnloadLater(Object resource)

Parameters

resource Object

The 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).