Class AutoTileTemplate
Template used to create an AutoTile from Texture2D and Sprites.
Inherited Members
      Object.GetEntityId()
    
    
    
    
    
      Object.InstantiateAsync<T>(T)
    
    
      Object.InstantiateAsync<T>(T, Transform)
    
    
      Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    
    
      Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Object.Instantiate<T>(T, InstantiateParameters)
    
    
      Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Object.FindObjectsByType<T>(FindObjectsSortMode)
    
    
    
      Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    
    
    
    
      Object.FindFirstObjectByType<T>()
    
    
      Object.FindAnyObjectByType<T>()
    
    
      Object.FindFirstObjectByType<T>(FindObjectsInactive)
    
    
      Object.FindAnyObjectByType<T>(FindObjectsInactive)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  Namespace: UnityEngine.Tilemaps
Assembly: Unity.2D.Tilemap.Extras.Editor.dll
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.tilemap.extras@latest/index.html?subfolder=/manual/AutoTile.html")]
public class AutoTileTemplate : TileTemplateFields
height
Original Height of the Template
Declaration
public int heightField Value
| Type | Description | 
|---|---|
| int | 
maskType
Mask Type for generated AutoTIle
Declaration
public AutoTile.AutoTileMaskType maskTypeField Value
| Type | Description | 
|---|---|
| AutoTile.AutoTileMaskType | 
sprites
Positional Data for detecting AutoTile Sprites
Declaration
public List<AutoTileTemplate.SpriteData> spritesField Value
| Type | Description | 
|---|---|
| List<AutoTileTemplate.SpriteData> | 
width
Original Width of the Template
Declaration
public int widthField Value
| Type | Description | 
|---|---|
| int | 
Methods
CreateTileAssets(Texture2D, IEnumerable<Sprite>, ref List<TileChangeData>)
Creates a List of TileBase Assets with an AutoTile from Texture2D and Sprites with placement data onto a Tile Palette.
Declaration
public override void CreateTileAssets(Texture2D texture2D, IEnumerable<Sprite> sprites, ref List<TileChangeData> tilesToAdd)Parameters
| Type | Name | Description | 
|---|---|---|
| Texture2D | texture2D | Texture2D to generate Tile Assets from. | 
| IEnumerable<Sprite> | sprites | Sprites to generate Tile Assets from. | 
| List<TileChangeData> | tilesToAdd | AutoTile asset and placement data to generate. |