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 : TileTemplate
Fields
defaultColliderType
The Default Collider Type set when creating a new Rule.
Declaration
public Tile.ColliderType defaultColliderType
Field Value
Type | Description |
---|---|
Tile.ColliderType |
defaultGameObject
The Default GameObject set when creating a new Rule.
Declaration
public GameObject defaultGameObject
Field Value
Type | Description |
---|---|
GameObject |
defaultSprite
The Default Sprite set when creating a new Rule.
Declaration
public Sprite defaultSprite
Field Value
Type | Description |
---|---|
Sprite |
rules
List of Positional Data for detecting Sprites and Tiling Rules.
Declaration
public List<RuleTileTemplate.RuleData> rules
Field Value
Type | Description |
---|---|
List<RuleTileTemplate.RuleData> |
textureHeight
Original Height of the Template
Declaration
public int textureHeight
Field Value
Type | Description |
---|---|
int |
textureWidth
Original Width of the Template
Declaration
public int textureWidth
Field 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. |