Class EntityIdTileUtility
Utility class for creating Tiles
Inherited Members
Namespace: UnityEditor.Tilemaps
Assembly: Unity.2D.Tilemap.Editor.dll
Syntax
[MovedFrom(true, "UnityEditor.Tilemaps.Experimental", "Unity.2D.Tilemap.Editor", null)]
public class EntityIdTileUtility
Methods
CreateDefaultEntityIdTile()
Creates an EntityIdTile with defaults based on the EntityIdTile preset
Declaration
public static EntityIdTile CreateDefaultEntityIdTile()
Returns
| Type | Description |
|---|---|
| EntityIdTile | An EntityIdTile with defaults based on the EntityIdTile preset |
DefaultEntityIdTile(Sprite)
Creates a EntityIdTile with defaults based on the EntityIdTile preset and a Sprite set
Declaration
public static TileBase DefaultEntityIdTile(Sprite sprite)
Parameters
| Type | Name | Description |
|---|---|---|
| Sprite | sprite | A Sprite to set the Tile with |
Returns
| Type | Description |
|---|---|
| TileBase | An EntityIdTile with defaults based on the EntityIdTile preset and a Sprite set |