Show / Hide Table of Contents

Class Transform<T>

A Component<T> that represents UnityEngine.Transform or its derivatives, and the game object it is attached to.

Inheritance
Object
BindableObject
Node
Component<T>
Transform<T>
RectTransform
Transform
Implements
INotifyPropertyChanged
IDynamicResourceHandler
ITransform
IEnumerable<Node>
Inherited Members
Component<T>.BodyProperty
Component<T>.CreateBindableModifierProperty(String, Type, BindableProperty.CreateDefaultValueDelegate)
Component<T>.Body
Node.AddTo(UnityEngine.GameObject)
BindableObject.BindingContextProperty
Xamarin.Forms.BindableObject.add_PropertyChanging(Xamarin.Forms.PropertyChangingEventHandler)
Xamarin.Forms.BindableObject.remove_PropertyChanging(Xamarin.Forms.PropertyChangingEventHandler)
BindableObject.ClearValue(BindableProperty)
BindableObject.ClearValue(BindablePropertyKey)
BindableObject.GetValue(BindableProperty)
BindableObject.GetValues(BindableProperty, BindableProperty)
BindableObject.GetValues(BindableProperty, BindableProperty, BindableProperty)
BindableObject.IsSet(BindableProperty)
BindableObject.RemoveBinding(BindableProperty)
BindableObject.SetBinding(BindableProperty, BindingBase)
BindableObject.SetInheritedBindingContext(BindableObject, Object)
BindableObject.ApplyBindings()
BindableObject.OnPropertyChanged(String)
BindableObject.OnPropertyChanging(String)
BindableObject.UnapplyBindings()
BindableObject.IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)
BindableObject.SetValue(BindableProperty, Object)
BindableObject.SetValue(BindablePropertyKey, Object)
BindableObject.SetValueCore(BindableProperty, Object, SetValueFlags)
BindableObject.CoerceValue(BindableProperty)
BindableObject.CoerceValue(BindablePropertyKey)
BindableObject.Dispatcher
BindableObject.BindingContext
BindableObject.PropertyChanged
BindableObject.PropertyChanging
BindableObject.BindingContextChanged
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 Source

Transform()

Declaration
public Transform()

Fields

| Improve this Doc View Source

ActiveSelfProperty

Backing store for the ActiveSelf property.

Declaration
public static readonly BindableProperty ActiveSelfProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

LayerProperty

Backing store for the Layer property.

Declaration
public static readonly BindableProperty LayerProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

LocalEulerAnglesProperty

Backing store for the LocalEulerAngles property.

Declaration
public static readonly BindableProperty LocalEulerAnglesProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

LocalRotationProperty

Backing store for the LocalRotation property.

Declaration
public static readonly BindableProperty LocalRotationProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

LocalScaleProperty

Backing store for the LocalScale property.

Declaration
public static readonly BindableProperty LocalScaleProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

NameProperty

Backing store for the Name property.

Declaration
public static readonly BindableProperty NameProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

TagProperty

Backing store for the Tag property.

Declaration
public static readonly BindableProperty TagProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

TransformsSourceProperty

Backing store for the TransformsSource property.

Declaration
public static readonly BindableProperty TransformsSourceProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

TransformTemplateProperty

Backing store for the TransformTemplate property.

Declaration
public static readonly BindableProperty TransformTemplateProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

ActiveSelf

A property that represents UnityEngine.GameObject.activeSelf.

Declaration
public bool ActiveSelf { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Layer

A property that represents UnityEngine.GameObject.layer.

Declaration
public int Layer { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

LocalEulerAngles

A property that represents UnityEngine.Transform.localEulerAngles.

Declaration
public UnityEngine.Vector3 LocalEulerAngles { get; set; }
Property Value
Type Description
UnityEngine.Vector3
| Improve this Doc View Source

LocalRotation

A property that represents UnityEngine.Transform.localRotation.

Declaration
public UnityEngine.Quaternion LocalRotation { get; set; }
Property Value
Type Description
UnityEngine.Quaternion
| Improve this Doc View Source

LocalScale

A property that represents UnityEngine.Transform.localScale.

Declaration
public UnityEngine.Vector3 LocalScale { get; set; }
Property Value
Type Description
UnityEngine.Vector3
See Also
Vector3
| Improve this Doc View Source

Name

The name of the UnityEngine.Transform.

Declaration
public string Name { get; set; }
Property Value
Type Description
String
See Also
UnityEngine.Object.name
| Improve this Doc View Source

Tag

The tag of the UnityEngine.Transform.

Declaration
public string Tag { get; set; }
Property Value
Type Description
String
See Also
UnityEngine.Component.tag
| Improve this Doc View Source

TransformsSource

Gets or sets the source of transforms to template and display.

Declaration
public IEnumerable TransformsSource { get; set; }
Property Value
Type Description
IEnumerable
| Improve this Doc View Source

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 Source

Add(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.

| Improve this Doc View Source

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
Mux.Markup.Component<T>.AddToInMainThread(UnityEngine.GameObject)
Remarks

The caller must call this method in the main thread.

| Improve this Doc View Source

AwakeInMainThread()

A methot that actually wakes the node up in the main thread.

Declaration
protected override void AwakeInMainThread()
Overrides
Mux.Markup.Component<T>.AwakeInMainThread()
Remarks

The caller must call this method in the main thread after calling AddToInMainThread(UnityEngine.GameObject).

| Improve this Doc View Source

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
UnityEngine.Object.Destroy(UnityEngine.Object,System.Single)
| Improve this Doc View Source

DestroyImmediate(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
UnityEngine.Object.DestroyImmediate(UnityEngine.Object,System.Boolean)
| Improve this Doc View Source

DestroyMuxInMainThread()

A method to destroy Mux state in the main thread.

Declaration
protected override void DestroyMuxInMainThread()
Overrides
Node.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.

| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()
| Improve this Doc View Source

OnBindingContextChanged()

Declaration
protected override void OnBindingContextChanged()
Overrides
BindableObject.OnBindingContextChanged()

Implements

System.ComponentModel.INotifyPropertyChanged
Xamarin.Forms.Internals.IDynamicResourceHandler
ITransform
IEnumerable<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX