Struct TilemapRenderer
A component for tilemap rendering. Specifies an {@link Tilemap} to draw, as well as and rendering modifiers, such as a color tint.
Namespace: Unity.Tiny.Tilemap2D
Syntax
public struct TilemapRenderer : IComponentData
Fields
blending
Blending mode 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 |
tilemap
Specifies the entity with the {@link Unity.Tiny.Tilemap Tilemap} component that describes the shape to render. If null, looks for the {@link Tilemap} on the same entity as the {@link Tilemap2DRenderer}.
Declaration
public Entity tilemap
Field Value
Type | Description |
---|---|
Entity |