Struct SpriteRenderer | 2D Entities | 0.31.0-preview.3
docs.unity.cn
    Show / Hide Table of Contents

    Struct SpriteRenderer

    Component that holds Sprite Renderer data.

    Namespace: Unity.U2D.Entities
    Syntax
    public struct SpriteRenderer : IComponentData

    Fields

    Color

    Rendering color for the Sprite graphic.

    Declaration
    public float4 Color
    Field Value
    Type Description
    float4

    The default color is white.

    MaskInteraction

    Specifies how the Sprite interacts with the Sprite Masks.

    Declaration
    public SpriteMaskInteraction MaskInteraction
    Field Value
    Type Description
    SpriteMaskInteraction

    -

    Material

    Link to the entity holding Material data.

    Declaration
    public Entity Material
    Field Value
    Type Description
    Entity

    -

    Sprite

    Link to the entity holding Sprite data.

    Declaration
    public Entity Sprite
    Field Value
    Type Description
    Entity

    -

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 30 October 2020