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 |
---|---|
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 | - |