Show / Hide Table of Contents

Interface ITransform

An interface that represents UnityEngine.Transform or its derivatives, and the game object it is attached to.

Namespace: Mux.Markup
Assembly: Mux.Markup.dll
Syntax
public interface ITransform : IEnumerable<Node>
Remarks

This is useful as an interface common both for Transform and RectTransform

Properties

| Improve this Doc View Source

ActiveSelf

A property that represents UnityEngine.GameObject.activeSelf.

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

Layer

A property that represents UnityEngine.GameObject.layer.

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

LocalRotation

A property that represents UnityEngine.Transform.localRotation.

Declaration
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
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
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
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
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
DataTemplate TransformTemplate { get; set; }
Property Value
Type Description
DataTemplate

Methods

| Improve this Doc View Source

Add(Node)

A method to add Node.

Declaration
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

Destroy(Single)

A method to unapply bindings, remove itself from the markup tree, and destroy the underlaying UnityEngine.GameObject.

Declaration
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
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
In This Article
Back to top Generated by DocFX