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 SourceActiveSelf
A property that represents UnityEngine.GameObject.activeSelf.
Declaration
bool ActiveSelf { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Layer
A property that represents UnityEngine.GameObject.layer.
Declaration
int Layer { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
LocalRotation
A property that represents UnityEngine.Transform.localRotation.
Declaration
UnityEngine.Quaternion LocalRotation { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Quaternion |
LocalScale
A property that represents UnityEngine.Transform.localScale.
Declaration
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
string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
See Also
| Improve this Doc View SourceTag
The tag of the UnityEngine.Transform.
Declaration
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
IEnumerable TransformsSource { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable |
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 SourceAdd(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.
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
| Improve this Doc View SourceDestroyImmediate(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 |