Depiction Engine For Unity 2023.0 (Alpha)
|
Class containing all the DepictionEngine.TerrainGridMeshObject found for a specific grid dimension and index. More...
Public Member Functions | |
void | Init (Vector2Int grid2DDimensions, Vector2Int grid2DIndex) |
override void | InitializeFields () |
void | RemoveNullTerrainGridMeshObjects () |
override void | UpdateAllDelegates () |
bool | Contains (TerrainGridMeshObject terrainGridMeshObject) |
void | Add (TerrainGridMeshObject terrainGridMeshObject) |
bool | Remove (TerrainGridMeshObject terrainGridMeshObject) |
bool | ContainsInitializedTerrainGridMeshObject () |
float | GetHighestAlpha (Camera camera) |
bool | GetGeoCoordinateElevation (out float elevation, GeoCoordinate3Double geoCoordinate, Camera camera=null, bool raycast=false) |
TerrainGridMeshObject | GetHighestSubdivisionTerrainGridMeshObject (Camera camera=null) |
Vector2Double | GetGrid2DIndexFromGeoCoordinate (GeoCoordinate3Double geoCoordinate) |
void | IterateOverTerrainGridMeshObject (Func< TerrainGridMeshObject, bool > callback, Camera camera=null) |
override bool | OnDispose (DisposeContext disposeContext) |
This is where you dispose any remaining dependencies. | |
Public Member Functions inherited from DepictionEngine.Disposable | |
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 | operator< (Grid2DIndexTerrainGridMeshObjects a, Grid2DIndexTerrainGridMeshObjects b) |
static bool | operator> (Grid2DIndexTerrainGridMeshObjects a, Grid2DIndexTerrainGridMeshObjects b) |
Static Public Member Functions inherited from DepictionEngine.Disposable | |
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 _) |
Public Attributes | |
Action< Grid2DIndexTerrainGridMeshObjects, string, object, object > | TerrainGridMeshObjectPropertyAssignedEvent |
Dispatched when a DepictionEngine.PropertyMonoBehaviour.PropertyAssignedEvent is detected in any of the DepictionEngine.TerrainGridMeshObject. | |
Action< Grid2DIndexTerrainGridMeshObjects, Object, PropertyMonoBehaviour > | TerrainGridMeshObjectChildAddedEvent |
Dispatched when a child is added to any of the DepictionEngine.TerrainGridMeshObject. | |
Action< Grid2DIndexTerrainGridMeshObjects, Object, PropertyMonoBehaviour > | TerrainGridMeshObjectChildRemovedEvent |
Dispatched when a child is removed from any of the DepictionEngine.TerrainGridMeshObject. | |
Action< Grid2DIndexTerrainGridMeshObjects > | TerrainGridMeshObjectMeshModifiedEvent |
Dispatched when any of the DepictionEngine.TerrainGridMeshObject modifies a DepictionEngine.Mesh. | |
Action< TerrainGridMeshObject > | TerrainGridMeshObjectAddedEvent |
Dispatched when a DepictionEngine.TerrainGridMeshObject is added. | |
Action< TerrainGridMeshObject > | TerrainGridMeshObjectRemovedEvent |
Dispatched when a DepictionEngine.TerrainGridMeshObject is removed. | |
Protected Member Functions | |
void | TerrainGridMeshObjectPropertyAssignedHandler (IProperty property, string name, object newValue, object oldValue) |
void | TerrainGridMeshObjectChildAddedHandler (Object objectBase, PropertyMonoBehaviour child) |
void | TerrainGridMeshObjectChildRemovedHandler (Object objectBase, PropertyMonoBehaviour child) |
void | TerrainGridMeshObjectMeshModifiedHandler () |
void | TerrainGridMeshObjectDisposedHandler (IDisposable disposable, DisposeContext disposeContext) |
Protected Member Functions inherited from DepictionEngine.Disposable | |
virtual DisposeContext | GetDisposingContext () |
Properties | |
Vector2Int | grid2DDimensions [get] |
Vector2Int | grid2DIndex [get] |
int | Count [get] |
Properties inherited from DepictionEngine.Disposable | |
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. | |
Additional Inherited Members | |
Static Public Attributes inherited from DepictionEngine.Disposable | |
static readonly Null | NULL = new() |
A value used for equality operators to establish whether an DepictionEngine.IDisposable is Destroyed OR Pooled. | |
Class containing all the DepictionEngine.TerrainGridMeshObject found for a specific grid dimension and index.
|
virtual |
Reimplemented from DepictionEngine.Disposable.
|
virtual |
This is where you dispose any remaining dependencies.
disposeContext | The context under which the object is being destroyed. |
Reimplemented from DepictionEngine.Disposable.
|
virtual |
Reimplemented from DepictionEngine.Disposable.