Depiction Engine For Unity 2023.0 (Alpha)
|
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 | Initialized (InitializationContext initializingContext) |
Acts as a reliable constructor and will always by called unlike Awake which is sometimes skipped during Undo / Redo operations. | |
T | AddComponent< T > (InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false) |
T | AddComponent< T > (bool initialize, InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false) |
Component | AddComponent (Type componentType, InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false) |
Component | AddComponent (Type componentType, bool initialize, InitializationContext initializingContext=InitializationContext.Programmatically, JSONObject json=null, List< PropertyModifier > propertyModifiers=null, bool isFallbackValues=false) |
InitializationContext | GetInitializeContext () |
bool | IsDisposing () |
Is the object disposing?. | |
bool | IsDisposed () |
Has the object been disposed? | |
void | Originator (Action callback, IScriptableBehaviour originator) |
Provides the code executed in this callback information about the DepictionEngine.IScriptableBehaviour that triggered it by keeping a reference available under DepictionEngine.IScriptableBehaviour.originator. | |
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. | |
void | OnDestroy () |
This is where you destroy any remaining dependencies. | |
virtual void | OnBeforeSerialize () |
virtual void | OnAfterDeserialize () |
virtual void | OnValidate () |
bool | Equals (Disposable.Null value) |
override bool | Equals (object value) |
override int | GetHashCode () |
Public Member Functions inherited from DepictionEngine.IScriptableBehaviour | |
InitializationContext | GetInitializeContext () |
void | Originator (Action callback, IScriptableBehaviour originator) |
Provides the code executed in this callback information about the DepictionEngine.IScriptableBehaviour that triggered it by keeping a reference available under DepictionEngine.IScriptableBehaviour.originator. | |
int | GetInstanceID () |
void | OnDestroy () |
This is where you destroy any remaining dependencies. | |
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 | InitValueInternal< T > (Action< T > callback, T defaultValue, Func< T > duplicateValue, InitializationContext initializingContext) |
static bool | InitValueInternal< T > (Action< T > callback, T defaultValue, InitializationContext initializingContext) |
static bool | operator!= (MonoBehaviourDisposable lhs, Disposable.Null rhs) |
static bool | operator== (MonoBehaviourDisposable lhs, Disposable.Null _) |
Protected Member Functions | |
virtual void | Awake () |
bool | IsDuplicateInitializing () |
virtual void | DestroyAfterFailedInitialization () |
virtual void | Initializing () |
The first step of the initialization process. | |
virtual void | InitializeUID (InitializationContext initializingContext) |
Initializes the object's unique identifiers. | |
virtual bool | AddToInstanceManager () |
Add the object to the DepictionEngine.InstanceManager if possible. | |
virtual bool | Initialize (InitializationContext initializingContext) |
The main initialization function. | |
virtual bool | IsValidInitialization (InitializationContext initializingContext) |
Provides the ability to interrupt the initialization. | |
bool | InitValue< T > (Action< T > callback, T defaultValue, InitializationContext initializingContext) |
bool | InitValue< T > (Action< T > callback, T defaultValue, Func< T > duplicateValue, InitializationContext initializingContext) |
virtual bool | IsFullyInitialized () |
virtual bool | UpdateAllDelegates () |
Function to initialize event handlers. | |
virtual void | Saving (UnityEngine.SceneManagement.Scene scene, string path) |
virtual void | Saved (UnityEngine.SceneManagement.Scene scene) |
virtual bool | LateInitialize (InitializationContext initializingContext) |
Every other objects are initialized at this point. | |
virtual bool | PostLateInitialize (InitializationContext initializingContext) |
Every other objects are initialized at this point. | |
bool | IsFallbackValues () |
bool | IsNotFallbackValues () |
bool | IsDestroying () |
Is the object destroying? | |
virtual bool | UpdateHideFlags () |
virtual DisposeContext | GetDisposingContext () |
virtual void | OnEnable () |
virtual void | OnDisable () |
Properties | |
bool | wasFirstUpdated [get] |
bool | initialized [get] |
Has the object been initialized. | |
bool | instanceAdded [get, set] |
bool | isFallbackValues [get] |
Was this component created by a DepictionEngine.FallbackValues. | |
IScriptableBehaviour | originator [get] |
Which DepictionEngine.IScriptableBehaviour triggered the current code execution if any at all. | |
DisposeContext | disposingContext [get] |
The DepictionEngine.DisposeContext under which the object was destroyed. | |
bool | poolComplete [get, set] |
Is the object done disposing. | |
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. | |
SceneManager | sceneManager [get] |
InstanceManager | instanceManager [get] |
DatasourceManager | datasourceManager [get] |
TweenManager | tweenManager [get] |
InputManager | inputManager [get] |
CameraManager | cameraManager [get] |
PoolManager | poolManager [get] |
RenderingManager | renderingManager [get] |
Properties inherited from DepictionEngine.IScriptableBehaviour | |
string | name [get, set] |
bool | isFallbackValues [get] |
Was this component created by a DepictionEngine.FallbackValues. | |
IScriptableBehaviour | originator [get] |
Which DepictionEngine.IScriptableBehaviour triggered the current code execution if any at all. | |
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. | |
T DepictionEngine.MonoBehaviourDisposable.AddComponent< T > | ( | bool | initialize, |
InitializationContext | initializingContext = InitializationContext::Programmatically , |
||
JSONObject | json = null , |
||
List< PropertyModifier > | propertyModifiers = null , |
||
bool | isFallbackValues = false |
||
) |
T | : | Component |
T DepictionEngine.MonoBehaviourDisposable.AddComponent< T > | ( | InitializationContext | initializingContext = InitializationContext::Programmatically , |
JSONObject | json = null , |
||
List< PropertyModifier > | propertyModifiers = null , |
||
bool | isFallbackValues = false |
||
) |
T | : | Component |
|
protectedvirtual |
Add the object to the DepictionEngine.InstanceManager if possible.
Reimplemented in DepictionEngine.PropertyMonoBehaviour, and DepictionEngine.Object.
bool DepictionEngine.MonoBehaviourDisposable.Equals | ( | Disposable::Null | value | ) |
Implements DepictionEngine.IDisposable.
InitializationContext DepictionEngine.MonoBehaviourDisposable.GetInitializeContext | ( | ) |
Implements DepictionEngine.IScriptableBehaviour.
bool DepictionEngine.MonoBehaviourDisposable.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.
|
protectedvirtual |
The main initialization function.
initializingContext |
Reimplemented in DepictionEngine.JsonMonoBehaviour, DepictionEngine.PropertyMonoBehaviour, DepictionEngine.Object, and DepictionEngine.PersistentMonoBehaviour.
|
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.
Reimplemented in DepictionEngine.PoolManager, DepictionEngine.RenderingManager, DepictionEngine.JsonMonoBehaviour, DepictionEngine.PropertyMonoBehaviour, DepictionEngine.Object, DepictionEngine.AutoGenerateVisualObject, DepictionEngine.MeshObjectBase, DepictionEngine.AtmosphereGridMeshObject, DepictionEngine.Grid2DMeshObjectBase, DepictionEngine.MeshRendererVisual, DepictionEngine.ControllerBase, and DepictionEngine.CameraGrid2DLoader.
|
protectedvirtual |
Initializes the object's unique identifiers.
initializingContext |
Reimplemented in DepictionEngine.PropertyMonoBehaviour.
|
protectedvirtual |
The first step of the initialization process.
Reimplemented in DepictionEngine.JsonMonoBehaviour, and DepictionEngine.PropertyMonoBehaviour.
|
protected |
Is the object destroying?
bool DepictionEngine.MonoBehaviourDisposable.IsDisposed | ( | ) |
Has the object been disposed?
Implements DepictionEngine.IDisposable.
bool DepictionEngine.MonoBehaviourDisposable.IsDisposing | ( | ) |
Is the object disposing?.
Implements DepictionEngine.IDisposable.
|
protectedvirtual |
Provides the ability to interrupt the initialization.
initializingContext |
Reimplemented in DepictionEngine.Object.
|
protectedvirtual |
Every other objects are initialized at this point.
Reimplemented in DepictionEngine.Level, DepictionEngine.Object, DepictionEngine.FallbackValues, DepictionEngine.LoaderBase, and DepictionEngine.TransformBase.
void DepictionEngine.MonoBehaviourDisposable.OnDestroy | ( | ) |
This is where you destroy any remaining dependencies.
Implements DepictionEngine.IScriptableBehaviour.
|
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.DatasourceBase, DepictionEngine.DatasourceManager, DepictionEngine.InputManager, DepictionEngine.PoolManager, DepictionEngine.RenderingManager, DepictionEngine.SceneManager, DepictionEngine.TweenManager, DepictionEngine.PropertyMonoBehaviour, DepictionEngine.GeoAstroObject, DepictionEngine.Camera, DepictionEngine.Object, DepictionEngine.AutoGenerateVisualObject, DepictionEngine.MeshObjectBase, DepictionEngine.Grid2DMeshObjectBase, DepictionEngine.FeatureGridMeshObjectBase, DepictionEngine.MeshGridMeshObject, DepictionEngine.TerrainGridMeshObject, DepictionEngine.LevelMeshObject, DepictionEngine.Marker, DepictionEngine.MeshRendererVisual, DepictionEngine.PersistentMonoBehaviour, DepictionEngine.AnimatorBase, DepictionEngine.GeoCoordinateController, DepictionEngine.CameraController, DepictionEngine.TargetControllerBase, DepictionEngine.ReflectionEffectBase, DepictionEngine.TerrainSurfaceReflectionEffect, DepictionEngine.FallbackValues, DepictionEngine.LoaderBase, DepictionEngine.ReferenceBase, DepictionEngine.TransformBase, and DepictionEngine.TransformDouble.
void DepictionEngine.MonoBehaviourDisposable.OnDisposeInternal | ( | DisposeContext | disposeContext | ) |
Implements DepictionEngine.IDisposable.
bool DepictionEngine.MonoBehaviourDisposable.OnDisposing | ( | ) |
Implements DepictionEngine.IDisposable.
void DepictionEngine.MonoBehaviourDisposable.Originator | ( | Action | callback, |
IScriptableBehaviour | originator | ||
) |
Provides the code executed in this callback information about the DepictionEngine.IScriptableBehaviour that triggered it by keeping a reference available under DepictionEngine.IScriptableBehaviour.originator.
callback | |
originator |
Implements DepictionEngine.IScriptableBehaviour.
|
protectedvirtual |
Every other objects are initialized at this point.
Reimplemented in DepictionEngine.ReferenceBase.
|
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.DatasourceBase, DepictionEngine.DatasourceManager, DepictionEngine.PropertyMonoBehaviour, DepictionEngine.GeoAstroObject, DepictionEngine.Level, DepictionEngine.Camera, DepictionEngine.Object, DepictionEngine.AutoGenerateVisualObject, DepictionEngine.InstantiatorVisualObject, DepictionEngine.MeshObjectBase, DepictionEngine.Grid2DMeshObjectBase, DepictionEngine.FeatureGridMeshObjectBase, DepictionEngine.MeshGridMeshObject, DepictionEngine.TerrainGridMeshObject, DepictionEngine.LevelMeshObject, DepictionEngine.Marker, DepictionEngine.VisualObject, DepictionEngine.MeshRendererVisual, DepictionEngine.UIVisual, DepictionEngine.Visual, DepictionEngine.PersistentMonoBehaviour, DepictionEngine.GeoCoordinateController, DepictionEngine.FallbackValues, DepictionEngine.IdLoader, DepictionEngine.Index2DLoader, DepictionEngine.Index2DLoaderBase, DepictionEngine.LoaderBase, DepictionEngine.ReferenceBase, DepictionEngine.TransformBase, and DepictionEngine.TransformDouble.
|
protectedvirtual |
Function to initialize event handlers.
Reimplemented in DepictionEngine.DatasourceBase, DepictionEngine.DatasourceManager, DepictionEngine.JsonInterface, DepictionEngine.PoolManager, DepictionEngine.RenderingManager, DepictionEngine.SceneManager, DepictionEngine.TweenManager, DepictionEngine.PropertyMonoBehaviour, DepictionEngine.GeoAstroObject, DepictionEngine.Object, DepictionEngine.InstantiatorVisualObject, DepictionEngine.Grid2DMeshObjectBase, DepictionEngine.ElevationGridMeshObjectBase, DepictionEngine.FeatureGridMeshObjectBase, DepictionEngine.MeshGridMeshObject, DepictionEngine.TerrainGridMeshObject, DepictionEngine.MeshObject, DepictionEngine.Marker, DepictionEngine.GeoCoordinateController, DepictionEngine.CameraController, DepictionEngine.TargetControllerBase, DepictionEngine.TerrainSurfaceReflectionEffect, DepictionEngine.CameraGrid2DLoader, DepictionEngine.LoaderBase, DepictionEngine.ReferenceBase, DepictionEngine.Script, and DepictionEngine.TransformBase.
bool DepictionEngine.MonoBehaviourDisposable.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.
|
get |
Was this component created by a DepictionEngine.FallbackValues.
Implements DepictionEngine.IScriptableBehaviour.
|
get |
Which DepictionEngine.IScriptableBehaviour triggered the current code execution if any at all.
Implements DepictionEngine.IScriptableBehaviour.
|
getset |
Is the object done disposing.
Implements DepictionEngine.IDisposable.