Class TesseraTileInstance
Represents a request to instantiate a TesseraTile, post generation.
Inheritance
TesseraTileInstance
Assembly: Tessera.dll
Syntax
public class TesseraTileInstance
Properties
Cell
The grid cell this instance fills. (for big tiles, this is the cell of the first offset)
Declaration
public Vector3Int Cell { get; }
Property Value
Type |
Description |
Vector3Int |
|
CellRotation
The rotation this instance is placed at (for big tiles, this is the cell of the first offset)
Declaration
public CellRotation CellRotation { get; }
Property Value
Type |
Description |
CellRotation |
|
CellRotations
The rotations this instance instance, in the same order as the tile offsets.
Most grids will have same rotation for all offsets.
Declaration
public CellRotation[] CellRotations { get; }
Property Value
Type |
Description |
CellRotation[] |
|
Cells
The cells this instance fills, in the same order as the tile offsets.
Declaration
public Vector3Int[] Cells { get; }
Property Value
Type |
Description |
Vector3Int[] |
|
LocalPosition
Declaration
public Vector3 LocalPosition { get; }
Property Value
LocalRotation
Declaration
public Quaternion LocalRotation { get; }
Property Value
Type |
Description |
Quaternion |
|
LocalScale
Declaration
public Vector3 LocalScale { get; }
Property Value
LossyScale
Declaration
public Vector3 LossyScale { get; }
Property Value
Gives a mesh deformation from tile space to generator space.
Null for grids that do not have deformed tiles.
Declaration
public Deformation MeshDeformation { get; }
Property Value
Type |
Description |
Deformation |
|
Position
Declaration
public Vector3 Position { get; }
Property Value
Rotation
Declaration
public Quaternion Rotation { get; }
Property Value
Type |
Description |
Quaternion |
|
Tile
Declaration
public TesseraTileBase Tile { get; }
Property Value
Methods
Align(TRS)
Sets Position/Rotation/Scale from the local versions and a given transform
Declaration
public void Align(TRS transform)
Parameters
Type |
Name |
Description |
TRS |
transform |
|
Clone()
Declaration
public TesseraTileInstance Clone()
Returns