Class Transform<T>
A Component<T> that represents UnityEngine.Transform or its derivatives, and the game object it is attached to.
Inherited Members
Namespace: Mux.Markup
Assembly: Mux.Markup.dll
Syntax
public abstract class Transform<T> : Component<T>, INotifyPropertyChanged, IDynamicResourceHandler, IInternalTransform, ITransform, IEnumerable<Node> where T : UnityEngine.Transform
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceTransform()
Declaration
public Transform()
Fields
| Improve this Doc View SourceActiveSelfProperty
Backing store for the ActiveSelf property.
Declaration
public static readonly BindableProperty ActiveSelfProperty
Field Value
Type | Description |
---|---|
BindableProperty |
LayerProperty
Backing store for the Layer property.
Declaration
public static readonly BindableProperty LayerProperty
Field Value
Type | Description |
---|---|
BindableProperty |
LocalEulerAnglesProperty
Backing store for the LocalEulerAngles property.
Declaration
public static readonly BindableProperty LocalEulerAnglesProperty
Field Value
Type | Description |
---|---|
BindableProperty |
LocalRotationProperty
Backing store for the LocalRotation property.
Declaration
public static readonly BindableProperty LocalRotationProperty
Field Value
Type | Description |
---|---|
BindableProperty |
LocalScaleProperty
Backing store for the LocalScale property.
Declaration
public static readonly BindableProperty LocalScaleProperty
Field Value
Type | Description |
---|---|
BindableProperty |
NameProperty
Backing store for the Name property.
Declaration
public static readonly BindableProperty NameProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TagProperty
Backing store for the Tag property.
Declaration
public static readonly BindableProperty TagProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TransformsSourceProperty
Backing store for the TransformsSource property.
Declaration
public static readonly BindableProperty TransformsSourceProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TransformTemplateProperty
Backing store for the TransformTemplate property.
Declaration
public static readonly BindableProperty TransformTemplateProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceActiveSelf
A property that represents UnityEngine.GameObject.activeSelf.
Declaration
public bool ActiveSelf { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Layer
A property that represents UnityEngine.GameObject.layer.
Declaration
public int Layer { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
LocalEulerAngles
A property that represents UnityEngine.Transform.localEulerAngles.
Declaration
public UnityEngine.Vector3 LocalEulerAngles { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
LocalRotation
A property that represents UnityEngine.Transform.localRotation.
Declaration
public UnityEngine.Quaternion LocalRotation { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Quaternion |
LocalScale
A property that represents UnityEngine.Transform.localScale.
Declaration
public UnityEngine.Vector3 LocalScale { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
See Also
| Improve this Doc View SourceName
The name of the UnityEngine.Transform.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
| Improve this Doc View SourceTag
The tag of the UnityEngine.Transform.
Declaration
public string Tag { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
| Improve this Doc View SourceTransformsSource
Gets or sets the source of transforms to template and display.
Declaration
public IEnumerable TransformsSource { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable |
TransformTemplate
Gets or sets the DataTemplate to apply to the TransformsSource.
Declaration
public DataTemplate TransformTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate |
Methods
| Improve this Doc View SourceAdd(Node)
A method to add Node.
Declaration
public void Add(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node |
Remarks
You can add Node as child elements in XAML thanks to this method.
The order of components except transforms are not guranteed. Transforms will be ordered in the order of addition.
Transforms cannot be added when templating is enabled.
AddToInMainThread(UnityEngine.GameObject)
A method that actually adds the node to UnityEngine.GameObject in the main thread.
Declaration
protected override void AddToInMainThread(UnityEngine.GameObject parent)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | parent |
Overrides
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 override void AwakeInMainThread()
Overrides
Remarks
The caller must call this method in the main thread after calling AddToInMainThread(UnityEngine.GameObject).
Destroy(Single)
A method to unapply bindings, remove itself from the markup tree, and destroy the underlaying UnityEngine.GameObject.
Declaration
public void Destroy(float delay = null)
Parameters
Type | Name | Description |
---|---|---|
Single | delay |
Remarks
The delay
only applies to the destruction of the underlaying
UnityEngine.GameObject.
Bindings will synchrnously be unapplied and the markup tree will be updated at the same time.
See Also
| Improve this Doc View SourceDestroyImmediate(Boolean)
A method to unapply bindings, remove itself from the markup tree, and destroy the underlaying UnityEngine.GameObject.
Declaration
public void DestroyImmediate(bool destroyAssets = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | destroyAssets |
See Also
| Improve this Doc View SourceDestroyMuxInMainThread()
A method to destroy Mux state in the main thread.
Declaration
protected override void DestroyMuxInMainThread()
Overrides
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.
Finalize()
Declaration
protected void Finalize()
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()