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 |