docs.unity3d.com
    目次を表示する/隠す

    Struct Renderer2D

    Component that holds general 2D rendering data.

    Namespace: Unity.Tiny
    Syntax
    public struct Renderer2D : IComponentData

    Fields

    Bounds

    Local bounds of the Renderer.

    Declaration
    public AABB Bounds
    Field Value
    Type Description
    AABB

    -

    OrderInLayer

    The Order in Layer value of the Renderer, which determines its render priority within its Sorting Layer.

    Declaration
    public short OrderInLayer
    Field Value
    Type Description
    Int16

    Lower valued Renderers are rendered first, with higher valued Renderers overlapping them and appearing closer to the camera.

    RenderingLayer

    The Layer the Renderer is in. Layers can be used for selective rendering from the camera.

    Declaration
    public int RenderingLayer
    Field Value
    Type Description
    Int32

    The Layer needs to be within the range of [0...31].

    SortingLayer

    The Sorting Layer that the Renderer is set to, which determines its priority in the render queue.

    Declaration
    public short SortingLayer
    Field Value
    Type Description
    Int16

    Lower valued Renderers are rendered first, with higher valued Renderers overlapping them and appearing closer to the camera.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)