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

    Struct RectCanvas

    A RectCanvas, the root of a RectTransform hierarchy.

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

    Fields

    ReferenceResolution

    Size of the canvas. Used as the root size to compute all child sizes and positions. If there is a RectCanvasScaleWithCamera component on the same entity, this will be updated based on the referenced camera settings.

    Declaration
    public float2 ReferenceResolution
    Field Value
    Type Description
    float2

    Properties

    RenderMode

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