Class UnloadAssetReferencesPhase
This ILoadPhase will call UnloadAssets(String) with the provided asset key.
Once the assets have been loaded, an optional callback with a list of the loaded assets will be broadcast.
This phase is only required if you are using an implementation of IAssetService that requires
loading. It can be a nice way to manage preloading assets so they can be synchronously accessed later.
Inheritance
UnloadAssetReferencesPhase
Assembly: cs.temp.dll.dll
Syntax
public class UnloadAssetReferencesPhase : LoadPhaseBase, ILoadPhase, ISequenceable, IProgressCompletable, IProgressable, ICompletable, IInjectable
Fields
_assetReferences
Declaration
protected IEnumerable<IAssetReference<object>> _assetReferences
Field Value
_loadedAssets
Declaration
protected List<object> _loadedAssets
Field Value
_onAssetsUnloadedCallback
Declaration
protected Action _onAssetsUnloadedCallback
Field Value
Methods
Cleanup()
Declaration
public override void Cleanup()
Overrides
Initialize(IEnumerable<IAssetReference<Object>>, Action)
Declaration
public virtual ILoadPhase Initialize(IEnumerable<IAssetReference<object>> assetReferences, Action onAssetsUnloaded = null)
Parameters
Returns
RunCancelLogic()
Declaration
protected override void RunCancelLogic()
Overrides
RunCompleteLogic()
Declaration
protected override void RunCompleteLogic()
Overrides
RunRevertLogic()
Declaration
protected override void RunRevertLogic()
Overrides
RunStartLogic()
Declaration
protected override void RunStartLogic()
Overrides
Implements