Class Node
A BindableObject to be represented as XAML tag.
Inherited Members
Namespace: Mux.Markup
Assembly: Mux.Markup.dll
Syntax
public abstract class Node : BindableObject, INotifyPropertyChanged, IDynamicResourceHandler
Methods
| Improve this Doc View SourceAddTo(UnityEngine.GameObject)
A method to add the component to the given UnityEngine.GameObject and wakes it up.
Declaration
public void AddTo(UnityEngine.GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject | The game object to contain the component. |
Remarks
This can be called only once for an instance.
This adds component or child transform. It makes no other side effects to the given game object.
AddToInMainThread(UnityEngine.GameObject)
A method that actually adds the node to UnityEngine.GameObject in the main thread.
Declaration
protected abstract void AddToInMainThread(UnityEngine.GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject |
Remarks
The caller must call this method in the main thread.
AwakeInMainThread()
A methot that actually wakes the node up in the main thread.
Declaration
protected abstract void AwakeInMainThread()
Remarks
The caller must call this method in the main thread after calling AddToInMainThread(UnityEngine.GameObject).
DestroyMuxInMainThread()
A method to destroy Mux state in the main thread.
Declaration
protected virtual void DestroyMuxInMainThread()
Remarks
This method must be called in main thread because it may make operations queued for the main thread fail. For example, an application of binding will be queued for the main thread. That would fail if the binding is unapplied before the application.