Struct RectTransformResult | Project Tiny | 0.32.0-preview.54
docs.unity3d.com
    Show / Hide Table of Contents

    Struct RectTransformResult

    The computed size and local position of a RectTransform element

    Namespace: Unity.Tiny.UI
    Syntax
    public struct RectTransformResult : IComponentData

    Fields

    LocalPosition

    The position of this rect's pivot point, in world units relative to its parent's LocalPosition.

    Declaration
    public float2 LocalPosition
    Field Value
    Type Description
    float2

    PivotOffset

    Offset from the LocalPosition (pivot point) to the lower left of the rectangle. In world units.

    Declaration
    public float2 PivotOffset
    Field Value
    Type Description
    float2

    Size

    The size of this rectangle in world units.

    Declaration
    public float2 Size
    Field Value
    Type Description
    float2

    Properties

    HiddenResult

    Declaration
    public bool HiddenResult { get; set; }
    Property Value
    Type Description
    Boolean
    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