Struct SpriteRenderer | Project Tiny | 0.31.0-preview.24
docs.unity.cn
    Show / Hide Table of Contents

    Struct SpriteRenderer

    Component that holds Sprite Renderer data.

    Namespace: Unity.Tiny
    Syntax
    public struct SpriteRenderer : IComponentData

    Fields

    Color

    Rendering color for the Sprite graphic.

    Declaration
    public float4 Color
    Field Value
    Type Description
    Unity.Mathematics.float4

    The default color is white.

    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 06 November 2020