Interface ITransform
This interface provides access to a VisualElement transform data.
Namespace: UnityEngine.UIElements
Syntax
public interface ITransform
Remarks
Reading properties of this object gives information about the transform of its VisualElement. It is possible to write the position, scale and rotation of the transform.
Properties
matrix
Transformation matrix calculated from the position, rotation and scale of the transform (Read Only).
Declaration
Matrix4x4 matrix { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
position
The position of the VisualElement transform.
Declaration
Vector3 position { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
rotation
The rotation of the VisualElement transform stored as a Quaternion.
Declaration
Quaternion rotation { get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
scale
The scale of the VisualElement transform.
Declaration
Vector3 scale { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |