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

AutotileTileset Class

Autotile tilesets are created automatically and are paired with an atlas texture that is an expanded form of the input autotile artwork.
public sealed class AutotileTileset : Tileset
public sealed class AutotileTileset extends Tileset

Refer to Autotile Tilesets section of user guide for further information about autotile tilesets.

Methods

CalculateTexCoords(Int32)
Calculate texture coordinates for use with GUI.DrawTextureWithTexCoords.
(Inherited from Tileset.)
CreatePrimaryBrush(String)
Create instance of primary autotile brush.
CreateSecondaryBrush(String)
Create instance of secondary autotile brush.
CreateStandaloneTileMesh(Int32)
Create new two-triangle plane mesh to represent tile. Mesh is not maintained within tileset and should be manually destroyed when nolonger needed.
(Inherited from Tileset.)
FindClosestIndexFromOrientation(Int32)
Finds tile index that is closest to specified orientation.
FindClosestOrientation(Int32)
Finds the closest match for the specified orientation.
GetTileMesh(Int32)
Gets non-procedural mesh for tile.
(Inherited from Tileset.)
IndexFromOrientation(Int32)
Gets tile index for specified orientation.
Initialize(Material, Texture2D, ITilesetMetrics)
Initialize tileset for first time.
(Inherited from Tileset.)
OrientationFromIndex(Int32)
Gets orientation for specified tile index.
PrepareTileMesh(Int32)
Prepares mesh for specific non-procedural tile if it has not already been prepared. Non-procedural meshes are typically prepared and stored within tileset asset.
(Inherited from Tileset.)
RefreshTileMesh(Int32)
Refresh mesh of non-procedural tile if it already exists, otherwise create it.
(Inherited from Tileset.)
SetMetricsFrom(ITilesetMetrics)
Set metrics of tileset.
(Inherited from Tileset.)
UpdateStandaloneTileMesh(Int32, Mesh)
Update vertices, uvs and triangles of existing standalone tile mesh.
(Inherited from Tileset.)
UpdateStandaloneTileMeshUVs(Int32, Mesh)
Just update UV coordinates of existing standalone tile mesh.
(Inherited from Tileset.)

Fields

procedural
Indicates if tiles should be generated procedurally or whether to create a game object for each tile.
(Inherited from Tileset.)
rawTexture
Raw texture that was used to generate autotile atlas.

Properties

AtlasMaterial
Gets or sets atlas material.
(Inherited from Tileset.)
AtlasTexture
Gets or sets atlas texture.
(Inherited from Tileset.)
AutotileLayout
Gets the style of autotile layout.
BorderSize
Gets size of tile border in pixels.
(Inherited from Tileset.)
BorderU
Gets size of tile border on U-axis in UV space.
(Inherited from Tileset.)
BorderV
Gets size of tile border on V-axis in UV space.
(Inherited from Tileset.)
Columns
Gets number of columns of tiles in atlas texture.
(Inherited from Tileset.)
Delta
Gets delta value.
(Inherited from Tileset.)
DeltaU
Gets delta for U-axis.
(Inherited from Tileset.)
DeltaV
Gets delta for V-axis.
(Inherited from Tileset.)
DesignableType
Gets user friendly name of designable type.
ForceClampEdges
Gets or sets a value indicating whether edges should be clamped when generating atlas texture.
HasInnerJoins
Gets a value indicating whether autotile tileset contains inner joins.
IsSecondaryBrushSupported
Gets a value indicating whether secondary brush is supported.
OriginalAtlasHeight
Gets height of original texture asset.
(Inherited from Tileset.)
OriginalAtlasWidth
Gets width of original texture asset.
(Inherited from Tileset.)
Rows
Gets number of rows of tiles in atlas texture.
(Inherited from Tileset.)
TileHeight
Gets height of tile in pixels.
(Inherited from Tileset.)
TileHeightUV
Gets height of tile in UV space.
(Inherited from Tileset.)
TileIncrementU
Gets offset to next tile on U-axis of UV coordinates.
(Inherited from Tileset.)
TileIncrementV
Gets offset to next tile on V-axis of UV coordinates.
(Inherited from Tileset.)
TileIncrementX
Gets offset in pixels to next tile on X-axis of atlas texture.
(Inherited from Tileset.)
TileIncrementY
Gets offset in pixels to next tile on Y-axis of atlas texture.
(Inherited from Tileset.)
TileWidth
Gets width of tile in pixels.
(Inherited from Tileset.)
TileWidthUV
Gets width of tile in UV space.
(Inherited from Tileset.)

Remarks

Autotile tilesets can contain both AutotileBrush's as well as regular TilesetBrush's.

Additional border space can be automatically added to autotile atlases when the autotile artwork is expanded. Whilst this does not entirely eliminate bleeding at the edges of tiles, it is a significant improvement when tiles are not viewed to closely.

Inheritance Hierarchy

System.Object
  Object
    ScriptableObject
      Rotorz.Tile.Tileset
        Rotorz.Tile.AutotileTileset

See Also

Reference