Struct Tile
A component describing properties of a tile used by tilemaps.
Namespace: Unity.Tiny.Tilemap2D
Syntax
public struct Tile : IComponentData
Fields
colliderType
Collider type, as defined in the TileColliderType enum. Options are: None, Sprite, Grid. Defaults to None.
Declaration
public TileColliderType colliderType
Field Value
Type | Description |
---|---|
TileColliderType |
color
The Color used to tint the material.
Declaration
public Color color
Field Value
Type | Description |
---|---|
Color |
sprite
The Sprite entity to draw.
Declaration
public Entity sprite
Field Value
Type | Description |
---|---|
Entity |