Struct Shape2DRenderer | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Shape2DRenderer

    A component for basic 2D shape rendering. Specifies how to render Shape2DVertex and Shape2DIndex data.

    Namespace: Unity.Tiny.Core2D
    Syntax
    public struct Shape2DRenderer : IComponentData

    Fields

    blending

    Blend op for rendering the sprite. The default and regular mode is Alpha.

    Declaration
    public BlendOp blending
    Field Value
    Type Description
    BlendOp

    color

    A color tint to apply to the sprite image. For normal rendering, this should be opaque white (1, 1, 1, 1).

    Declaration
    public Color color
    Field Value
    Type Description
    Color

    shape

    The Entity on which to look for a Shape2DVertex component to describe the shape to render. If null, the entity that holds the Shape2DRenderer is searched.

    Declaration
    public Entity shape
    Field Value
    Type Description
    Entity
    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