Rotorz Tile System Icon
Rotorz Tile System for Unity
API Reference
Available on the Unity Asset Store
TOC

TileData Class

Data that describes a painted tile.
[SerializableAttribute]
public sealed class TileData
[SerializableAttribute]
public sealed class TileData

Constructors

TileData()
Initializes a new instance of the TileData class

Methods

Clear()
Clear tile data.
Equals(Object)
Determines whether the specified Object is equal to the current TileData.
(Overrides Object.Equals(Object).)
Equals(TileData)
Determines whether the specified TileData is equal to the current TileData.
GetHashCode()
Serves as a hash function for a TileData object.
(Overrides Object.GetHashCode().)
GetUserFlag(Int32)
Gets the state of a custom user flag.
SetFrom(TileData)
Set tile data by copying from another TileData instance.
SetUserFlag(Int32, Boolean)
Sets the state of a custom user flag.
ToggleUserFlag(Int32)
Toggles the state of a custom user flag.

Fields

brush
Brush that was used to paint tile.
gameObject
The game object that occupies tile.
orientationMask
Bit representation of tile orientation.
tileset
The associated tileset asset.
tilesetIndex
Zero-based index of tile in tileset.
variationIndex
Zero-based index of the tile variation.

Properties

AliasBrush
Gets the alias brush.
AutotileBrush
Gets the autotile tileset brush.
Dirty
Gets or sets a value indicating whether this TileData is dirty.
Empty
Gets or sets a value indicating whether tile is empty.
HasGameObject
Gets a value indicating whether this TileData was linked to a game object.
IsGameObjectMissing
Gets a value indicating whether game object is missing for this TileData.
Name
Gets name of the attached game object.
OrientedBrush
Gets the oriented brush.
PaintedRotation
Gets or sets rotation which was used to paint tile. This will typically be zero.
Procedural
Gets or sets a value indicating whether this TileData is generated procedurally.
Rotation
Gets or sets actual rotation of tile. The value of this property will differ from PaintedRotation if additional rotation occurred.
SolidFlag
Gets or sets a value indicating whether this TileData is solid.
TilesetBrush
Gets the tileset brush.
UserFlags
Gets or sets bit mask that represents up to 16 user flags.

Inheritance Hierarchy

System.Object
  Rotorz.Tile.TileData

See Also

Reference