Show / Hide Table of Contents

Class TesseraTileInstance

Represents a request to instantiate a TesseraTile, post generation.

Inheritance
Object
TesseraTileInstance
Namespace: Tessera
Assembly: cs.temp.dll.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
Type Description
Vector3

LocalRotation

Declaration
public Quaternion LocalRotation { get; }
Property Value
Type Description
Quaternion

LocalScale

Declaration
public Vector3 LocalScale { get; }
Property Value
Type Description
Vector3

LossyScale

Declaration
public Vector3 LossyScale { get; }
Property Value
Type Description
Vector3

MeshDeformation

Gives a mesh deformation from tile space to generator space. Null for grids that do not have deformed tiles.

Declaration
public MeshDeformation MeshDeformation { get; }
Property Value
Type Description
MeshDeformation

Position

Declaration
public Vector3 Position { get; }
Property Value
Type Description
Vector3

Rotation

Declaration
public Quaternion Rotation { get; }
Property Value
Type Description
Quaternion

Tile

Declaration
public TesseraTileBase Tile { get; }
Property Value
Type Description
TesseraTileBase

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
Type Description
TesseraTileInstance
Back to top Generated by DocFX