Depiction Engine For Unity 2023.0 (Alpha)
Loading...
Searching...
No Matches
DepictionEngine.DisposeManager Class Reference

Manager handling the pooling or destruction of objects. More...

Static Public Member Functions

static void Dispose (object obj)
 Will dispose of an object by sending it to the pool if pooling is enabled, it implements DepictionEngine.IDisposable and no DepictionEngine.DisposeContext is specified. Otherwise it will be destroyed.
 
static void Dispose (object obj, DisposeContext disposeContext)
 Will dispose of an object by sending it to the pool if pooling is enabled, it implements DepictionEngine.IDisposable and no DepictionEngine.DisposeContext is specified. Otherwise it will be destroyed.
 
static void Destroy (UnityEngine.Object unityObject, DisposeContext disposeContext=DisposeContext.Programmatically_Destroy)
 Destroy any UnityEngine.Object.
 
static bool IsNullOrDisposing (object obj)
 
static bool IsUnityNull (object obj)
 
static void DisposingContext (Action callback, DisposeContext disposingContext)
 
static bool TriggerOnDestroyIfNull (IScriptableBehaviour scriptableBehaviour)
 

Static Public Attributes

static DisposeContext disposingContext = DisposeContext.Editor_Unknown
 

Detailed Description

Manager handling the pooling or destruction of objects.

Member Function Documentation

◆ Destroy()

static void DepictionEngine.DisposeManager.Destroy ( UnityEngine::Object  unityObject,
DisposeContext  disposeContext = DisposeContext::Programmatically_Destroy 
)
static

Destroy any UnityEngine.Object.

Parameters
unityObjectThe UnityEngine.Object.
disposeContextThe context under which the object is being destroyed.

◆ Dispose() [1/2]

static void DepictionEngine.DisposeManager.Dispose ( object  obj)
static

Will dispose of an object by sending it to the pool if pooling is enabled, it implements DepictionEngine.IDisposable and no DepictionEngine.DisposeContext is specified. Otherwise it will be destroyed.

Parameters
objThe object to dispose.

◆ Dispose() [2/2]

static void DepictionEngine.DisposeManager.Dispose ( object  obj,
DisposeContext  disposeContext 
)
static

Will dispose of an object by sending it to the pool if pooling is enabled, it implements DepictionEngine.IDisposable and no DepictionEngine.DisposeContext is specified. Otherwise it will be destroyed.

Parameters
objThe object to dispose.
disposeContextThe context under which the object is being destroyed.

The documentation for this class was generated from the following file: