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

    Struct RectangleRenderState

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

    Fields

    BaseSize

    Declaration
    public float2 BaseSize
    Field Value
    Type Description
    float2

    Border

    The splitting lines for the slicing. Measured from the outside and ordered Left, Bottom, Right, Top. Typical value is 0.25 for all 4.

    Declaration
    public float4 Border
    Field Value
    Type Description
    float4

    ImageRenderType

    If Simple, just stretched, and the values below aren't used. If Sliced, 9-slices are used, and we need all the extra metadata to render.

    Declaration
    public ImageRenderType ImageRenderType
    Field Value
    Type Description
    ImageRenderType

    Outer

    Declaration
    public float4 Outer
    Field Value
    Type Description
    float4

    PixelsPerUnit

    Declaration
    public float PixelsPerUnit
    Field Value
    Type Description
    Single

    PixelsPerUnitMultiplier

    Declaration
    public float PixelsPerUnitMultiplier
    Field Value
    Type Description
    Single
    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