Struct Tilemap
A component that describes tiles in a grid layout.
Namespace: Unity.Tiny.Tilemap2D
Syntax
public struct Tilemap : IComponentData
Fields
anchor
The anchor point of each tile within its grid cell.
Declaration
public float3 anchor
Field Value
Type | Description |
---|---|
float3 |
cellGap
The gap between grid cells, in pixels.
Declaration
public float3 cellGap
Field Value
Type | Description |
---|---|
float3 |
cellSize
The size of grid cells, in pixels.
Declaration
public float3 cellSize
Field Value
Type | Description |
---|---|
float3 |
position
The position of each tile in its grid cell relative to anchor.
Declaration
public float3 position
Field Value
Type | Description |
---|---|
float3 |
rotation
The rotation of each tile in its grid cell relative to anchor
Declaration
public quaternion rotation
Field Value
Type | Description |
---|---|
quaternion |
scale
The scale of each tile in its grid cell relative to anchor.
Declaration
public float3 scale
Field Value
Type | Description |
---|---|
float3 |