StrangeIoC
0.6.0
The IoC/Binding Framework for Unity3D and C#
|
The Root View of a Context hierarchy. More...
Protected Member Functions | |
virtual void | OnDestroy () |
When a ContextView is Destroyed, automatically removes the associated Context. More... | |
Properties | |
IContext | context [get, set] |
bool | requiresContext [get, set] |
bool | registeredWithContext [get, set] |
bool | autoRegisterWithContext [get, set] |
Properties inherited from strange.extensions.context.api.IContextView | |
IContext | context [get, set] |
Get and set the Context. | |
Properties inherited from strange.extensions.mediation.api.IView | |
bool | requiresContext [get, set] |
Indicates whether the View can work absent a context. More... | |
bool | registeredWithContext [get, set] |
Indicates whether this View has been registered with a Context. | |
bool | autoRegisterWithContext [get] |
Exposure to code of the registerWithContext (Inspector) boolean. If false, the View won't try to register. | |
The Root View of a Context hierarchy.
Extend this class to create your AppRoot, then attach that MonoBehaviour to the GameObject at the very top of your display hierarchy.
The startup sequence looks like this:
void Awake() { context = new MyContext(this, true); context.Start ();
|
inlineprotectedvirtual |
When a ContextView is Destroyed, automatically removes the associated Context.