Class EntityIdTile
A default Tile to be placed in a Tilemap, using EntityId to reference managed Unity Objects. This is the Entity Id Tile equivalent for Tile.
Inherited Members
Namespace: Unity.Tilemaps.Experimental
Assembly: Unity.2D.Tilemap.Experimental.dll
Syntax
[BurstCompile]
public class EntityIdTile : EntityIdTileBase
Properties
colliderType
ColliderType of the Tile.
Declaration
public Tile.ColliderType colliderType { get; set; }
Property Value
| Type | Description |
|---|---|
| Tile.ColliderType |
color
Color of the Tile.
Declaration
public Color color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
flags
TileFlags of the Tile.
Declaration
public TileFlags flags { get; set; }
Property Value
| Type | Description |
|---|---|
| TileFlags |
gameObject
GameObject to be instantiated at the position where the Tile is placed.
Declaration
public GameObject gameObject { get; set; }
Property Value
| Type | Description |
|---|---|
| GameObject |
getTileAnimationDataJobDelegate
Returns null as the EntityIdTile has no Tile Animation Data
Declaration
protected override EntityIdTileBase.GetTileAnimationDataJobDelegate getTileAnimationDataJobDelegate { get; }
Property Value
| Type | Description |
|---|---|
| EntityIdTileBase.GetTileAnimationDataJobDelegate |
Overrides
getTileDataJobDelegate
Returns the delegate function called by Tilemap using Unity Jobs to get Tile Data from EntityIdTiles
Declaration
protected override EntityIdTileBase.GetTileDataJobDelegate getTileDataJobDelegate { get; }
Property Value
| Type | Description |
|---|---|
| EntityIdTileBase.GetTileDataJobDelegate |
Overrides
refreshTileJobDelegate
Returns the delegate function called by Tilemap using Unity Jobs to refresh EntityIdTiles
Declaration
protected override EntityIdTileBase.RefreshTileJobDelegate refreshTileJobDelegate { get; }
Property Value
| Type | Description |
|---|---|
| EntityIdTileBase.RefreshTileJobDelegate |
Overrides
sprite
Sprite to be rendered at the Tile.
Declaration
public Sprite sprite { get; set; }
Property Value
| Type | Description |
|---|---|
| Sprite |
structType
Returns the type of data struct used for the EntityIdTile, which is the type of TileData.
Declaration
public override Type structType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Overrides
transform
Transform matrix of the Tile.
Declaration
public Matrix4x4 transform { get; set; }
Property Value
| Type | Description |
|---|---|
| Matrix4x4 |
Methods
CopyDataStruct(void*)
Copies the TileData struct used for this EntityIdTile to the outPtr buffer for use in Unity Jobs.
Declaration
public override void CopyDataStruct(void* outPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | outPtr | Data buffer to copy data struct from EntityIdTile to. |
Overrides
GetTileData(Vector3Int, ITilemap, ref TileData)
Retrieves the tile rendering data for the Tile.
Declaration
public override void GetTileData(Vector3Int position, ITilemap tilemap, ref TileData tileData)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3Int | position | Position of the Tile on the Tilemap. |
| ITilemap | tilemap | The Tilemap the tile is present on. |
| TileData | tileData | Data to render the tile. This is filled with Tile, Tile.color and Tile.transform. |
Overrides
OnEnable()
Initializes the EntityIdTile.
Declaration
public override void OnEnable()