Depiction Engine For Unity 2023.0 (Alpha)
|
Classes | |
struct | Null |
A value used for equality operators to establish whether an DepictionEngine.IDisposable is Destroyed OR pooled. More... | |
Public Member Functions | |
virtual void | Recycle () |
Resets the fields to their default value so the object can be reused again. It will be called by the DepictionEngine.PoolManager if the object is being recycled from the pool. | |
bool | Initialize () |
Needs to be called before the object can be used. Objects created through the DepictionEngine.InstanceManager should automatically Initialize the object. | |
virtual void | Initializing () |
virtual void | InitializeFields () |
virtual void | InitializeSerializedFields () |
virtual void | UpdateAllDelegates () |
virtual void | Initialized (InitializationContext initializingContext) |
Acts as a reliable constructor and will always by called unlike Awake which is sometimes skipped during Undo / Redo operations. | |
bool | IsDisposing () |
Is the object disposing?. | |
bool | IsDisposed () |
Has the object been disposed? | |
bool | IsDestroying () |
void | MarkAsNotPoolable () |
virtual void | OnBeforeSerialize () |
virtual void | OnAfterDeserialize () |
bool | OnDisposing () |
bool | UpdateDisposingContext (bool forceUpdate=false) |
This is where you clear or dispose any remaining references. It will be called automatically by DepictionEngine.DisposeManager immediately after DepictionEngine.IDisposable.OnDisposing unless the object was Destroyed as a result of an Editor action. | |
void | OnDisposeInternal (DisposeContext disposeContext) |
virtual bool | OnDispose (DisposeContext disposeContext) |
This is where you dispose any remaining dependencies. | |
bool | Equals (Null value) |
override bool | Equals (object value) |
override int | GetHashCode () |
void | Initialized (InitializationContext initializingContext) |
Acts as a reliable constructor and will always by called unlike Awake which is sometimes skipped during Undo / Redo operations. | |
void | Recycle () |
Resets the fields to their default value so the object can be reused again. It will be called by the DepictionEngine.PoolManager if the object is being recycled from the pool. | |
bool | Initialize () |
Needs to be called before the object can be used. Objects created through the DepictionEngine.InstanceManager should automatically Initialize the object. | |
bool | IsDisposing () |
Is the object disposing?. | |
bool | IsDisposed () |
Has the object been disposed? | |
bool | OnDisposing () |
bool | OnDispose (DisposeContext disposeContext) |
This is where you dispose any remaining dependencies. | |
void | OnDisposeInternal (DisposeContext disposeContext) |
bool | UpdateDisposingContext (bool forceUpdate=false) |
This is where you clear or dispose any remaining references. It will be called automatically by DepictionEngine.DisposeManager immediately after DepictionEngine.IDisposable.OnDisposing unless the object was Destroyed as a result of an Editor action. | |
bool | Equals (Disposable.Null value) |
Static Public Member Functions | |
static bool | IsDisposed< T > (T disposable) |
Is the object Destroyed OR Pooled(if the object is an DepictionEngine.IDisposable). | |
static bool | operator!= (Disposable lhs, Null rhs) |
static bool | operator== (Disposable lhs, Null _) |
Static Public Attributes | |
static readonly Null | NULL = new() |
A value used for equality operators to establish whether an DepictionEngine.IDisposable is Destroyed OR Pooled. | |
Protected Member Functions | |
virtual DisposeContext | GetDisposingContext () |
Properties | |
bool | initialized [get] |
Has the object been initialized. | |
bool | poolComplete [get, set] |
Is the object done disposing. | |
DisposeContext | disposingContext [get] |
The DepictionEngine.DisposeContext under which the object was destroyed. | |
bool | notPoolable [get] |
Action< IDisposable > | InitializedEvent [get, set] |
Dispatched after the object as been initialized. | |
Action< IDisposable, DisposeContext > | DisposedEvent [get, set] |
Dispatched during the DepictionEngine.MonoBehaviourDisposable.OnDispose, DepictionEngine.ScriptableObjectDisposable.OnDispose or DepictionEngine.Disposable.OnDispose. | |
Properties inherited from DepictionEngine.IDisposable | |
Action< IDisposable > | InitializedEvent [get, set] |
Dispatched after the object as been initialized. | |
Action< IDisposable, DisposeContext > | DisposedEvent [get, set] |
Dispatched during the DepictionEngine.MonoBehaviourDisposable.OnDispose, DepictionEngine.ScriptableObjectDisposable.OnDispose or DepictionEngine.Disposable.OnDispose. | |
bool | initialized [get] |
Has the object been initialized. | |
bool | poolComplete [get, set] |
Is the object done disposing. | |
DisposeContext | disposingContext [get] |
The DepictionEngine.DisposeContext under which the object was destroyed. | |
bool DepictionEngine.Disposable.Equals | ( | Null | value | ) |
Implements DepictionEngine.IDisposable.
bool DepictionEngine.Disposable.Initialize | ( | ) |
Needs to be called before the object can be used. Objects created through the DepictionEngine.InstanceManager should automatically Initialize the object.
In some edge cases, in the editor, the Initialize may not be called immediately after the object is instantiated.
Implements DepictionEngine.IDisposable.
|
virtual |
Acts as a reliable constructor and will always by called unlike Awake which is sometimes skipped during Undo / Redo operations.
initializingContext |
Implements DepictionEngine.IDisposable.
bool DepictionEngine.Disposable.IsDisposed | ( | ) |
Has the object been disposed?
Implements DepictionEngine.IDisposable.
|
static |
Is the object Destroyed OR Pooled(if the object is an DepictionEngine.IDisposable).
T |
disposable |
bool DepictionEngine.Disposable.IsDisposing | ( | ) |
Is the object disposing?.
Implements DepictionEngine.IDisposable.
|
virtual |
This is where you dispose any remaining dependencies.
disposeContext | The context under which the object is being destroyed. |
Implements DepictionEngine.IDisposable.
Reimplemented in DepictionEngine.ProcessorParameters, DepictionEngine.OperationResult, DepictionEngine.LoadResultData, DepictionEngine.Grid2DIndexTerrainGridMeshObjects, DepictionEngine.MeshObjectProcessorOutput, DepictionEngine.LevelModifier, DepictionEngine.MeshRendererVisualModifier, DepictionEngine.PropertyModifierData, DepictionEngine.PropertyModifierIndex2DParameters, DepictionEngine.TextureProcessorOutput, and DepictionEngine.TextureModifier.
void DepictionEngine.Disposable.OnDisposeInternal | ( | DisposeContext | disposeContext | ) |
Implements DepictionEngine.IDisposable.
bool DepictionEngine.Disposable.OnDisposing | ( | ) |
Implements DepictionEngine.IDisposable.
|
virtual |
Resets the fields to their default value so the object can be reused again. It will be called by the DepictionEngine.PoolManager if the object is being recycled from the pool.
Implements DepictionEngine.IDisposable.
Reimplemented in DepictionEngine.OperationResult, DepictionEngine.MeshesParameters, DepictionEngine.MeshesProcessorOutput, DepictionEngine.MeshObjectProcessorOutput, DepictionEngine.Grid2DMeshObjectBase.Grid2DMeshObjectParameters, DepictionEngine.ElevationGridMeshObjectBase.ElevationGridMeshObjectParameters, DepictionEngine.FeatureGridMeshObjectBase.FeatureParameters, DepictionEngine.BuildingGridMeshObject.BuildingGridMeshObjectParameters, DepictionEngine.MeshGridMeshObject.MeshGridMeshObjectParameters, DepictionEngine.TerrainGridMeshObject.TerrainGridMeshObjectParameters, DepictionEngine.LevelModifier, DepictionEngine.MeshRendererVisualModifier, DepictionEngine.BuildingFeatureModifier, DepictionEngine.PointFeatureModifier, DepictionEngine.FeatureMeshModifier, DepictionEngine.MeshModifier, DepictionEngine.ElevationModifier, DepictionEngine.TextureProcessorOutput, and DepictionEngine.TextureModifier.
bool DepictionEngine.Disposable.UpdateDisposingContext | ( | bool | forceUpdate = false | ) |
This is where you clear or dispose any remaining references. It will be called automatically by DepictionEngine.DisposeManager immediately after DepictionEngine.IDisposable.OnDisposing unless the object was Destroyed as a result of an Editor action.
forceUpdate |
Implements DepictionEngine.IDisposable.
|
getset |
Dispatched during the DepictionEngine.MonoBehaviourDisposable.OnDispose, DepictionEngine.ScriptableObjectDisposable.OnDispose or DepictionEngine.Disposable.OnDispose.
Implements DepictionEngine.IDisposable.
|
get |
The DepictionEngine.DisposeContext under which the object was destroyed.
Implements DepictionEngine.IDisposable.
|
get |
Has the object been initialized.
Implements DepictionEngine.IDisposable.
|
getset |
Dispatched after the object as been initialized.
Implements DepictionEngine.IDisposable.
|
getset |
Is the object done disposing.
Implements DepictionEngine.IDisposable.