Class RuleTileTemplate
Template used to create a RuleTile from Texture2D and Sprites.
Inherited Members
      ScriptableObject.SetDirty()
    
    
    
    
      ScriptableObject.CreateInstance<T>()
    
    
    
      Object.GetHashCode()
    
    
    
      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.Instantiate<T>(T)
    
    
      Object.Instantiate<T>(T, Vector3, Quaternion)
    
    
      Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    
    
      Object.Instantiate<T>(T, Transform)
    
    
    
    
    
    
    
    
    
    
    
    
    
      Object.DestroyObject(Object)
    
    
    
    
      Object.FindObjectsOfType<T>()
    
    
      Object.FindObjectsByType<T>(FindObjectsSortMode)
    
    
    
      Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    
    
      Object.FindObjectOfType<T>()
    
    
    
      Object.FindFirstObjectByType<T>()
    
    
      Object.FindAnyObjectByType<T>()
    
    
      Object.FindFirstObjectByType<T>(FindObjectsInactive)
    
    
      Object.FindAnyObjectByType<T>(FindObjectsInactive)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  Namespace: UnityEditor.Tilemaps
Assembly: Unity.2D.Tilemap.Extras.Editor.dll
Syntax
public class RuleTileTemplate : TileTemplateFields
defaultColliderType
The Default Collider Type set when creating a new Rule.
Declaration
public Tile.ColliderType defaultColliderTypeField Value
| Type | Description | 
|---|---|
| Tile.ColliderType | 
defaultGameObject
The Default GameObject set when creating a new Rule.
Declaration
public GameObject defaultGameObjectField Value
| Type | Description | 
|---|---|
| GameObject | 
defaultSprite
The Default Sprite set when creating a new Rule.
Declaration
public Sprite defaultSpriteField Value
| Type | Description | 
|---|---|
| Sprite | 
rules
List of Positional Data for detecting Sprites and Tiling Rules.
Declaration
public List<RuleTileTemplate.RuleData> rulesField Value
| Type | Description | 
|---|---|
| List<RuleTileTemplate.RuleData> | 
textureHeight
Original Height of the Template
Declaration
public int textureHeightField Value
| Type | Description | 
|---|---|
| int | 
textureWidth
Original Width of the Template
Declaration
public int textureWidthField Value
| Type | Description | 
|---|---|
| int | 
Methods
CreateTileAssets(Texture2D, IEnumerable<Sprite>, ref List<TileChangeData>)
Creates a List of TileBase Assets with a RuleTile 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 | RuleTile asset and placement data to generate. |