Class Tileset
Contains tile types by name. The names can be used to associate them with a named color.
Inheritance
Object
ScriptableObject
Tileset
Implements
ISerializationCallbackReceiver
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: InsaneScatterbrain.MapGraph
Syntax
public class Tileset : ObjectTypeSetScriptableObject<TileType, TileTypeEntry, TileBase>, IVersioned, IObjectTypeSet<TileType, TileBase>, IDataSet<TileType>, IDataSet, IPreparable, ISerializationCallbackReceiver
Properties
OpenSet
Gets the less restricted set of items for protected use.
Declaration
protected override OpenObjectTypeSet<TileType, TileTypeEntry, TileBase> OpenSet { get; }
Property Value
Type | Description |
---|---|
OpenObjectTypeSet<TileType, TileTypeEntry, TileBase> |
Overrides
InsaneScatterbrain.ScriptGraph.DataSetScriptableObject<InsaneScatterbrain.MapGraph.TileType, InsaneScatterbrain.MapGraph.OpenObjectTypeSet<InsaneScatterbrain.MapGraph.TileType, InsaneScatterbrain.MapGraph.TileTypeEntry, UnityEngine.Tilemaps.TileBase>>.OpenSet
Methods
Add(TileType)
Adds a tile type.
Declaration
public override void Add(TileType type)
Parameters
Type | Name | Description |
---|---|---|
TileType | type | The tile type to add. |
Overrides
GetTypeName(TileBase)
Get the type the given tile belongs to.
Declaration
public string GetTypeName(TileBase tile)
Parameters
Type | Name | Description |
---|---|---|
TileBase | tile | The tile to find the type for. |
Returns
Type | Description |
---|---|
string | The tile type, tile is a part of. |
OnAfterDeserialize()
Implement this method to receive a callback after Unity deserializes your object.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Implement this method to receive a callback before Unity serializes your object.
Declaration
public void OnBeforeSerialize()
Remove(string)
Removes a tile type by name.
Declaration
public override void Remove(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The ID of the tile type to remove. |
Overrides
Implements
UnityEngine.ISerializationCallbackReceiver