docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023