Class TesseraInitialConstraintBuilder
Inheritance
TesseraInitialConstraintBuilder
Assembly: Tessera.dll
Syntax
public class TesseraInitialConstraintBuilder
Constructors
Declaration
public TesseraInitialConstraintBuilder(Transform transform, IGrid grid)
Parameters
Type |
Name |
Description |
Transform |
transform |
|
IGrid |
grid |
|
Properties
Grid
Declaration
public IGrid Grid { get; }
Property Value
Methods
CreateVolume(string, List<TesseraTileBase>, List<Cell>)
Declaration
public TesseraVolumeFilter CreateVolume(string name, List<TesseraTileBase> tiles, List<Cell> cells)
Parameters
Returns
GetInitialConstraint(TesseraPinned)
Gets the initial constraint from a given pin at a given position.
It should be aligned with the grid defined by this generator.
Declaration
public ITesseraInitialConstraint GetInitialConstraint(TesseraPinned pin)
Parameters
Returns
GetInitialConstraint(TesseraPinned, Matrix4x4)
Gets the initial constraint from a given pin at a given position.
It should be aligned with the grid defined by this generator.
Declaration
public ITesseraInitialConstraint GetInitialConstraint(TesseraPinned pin, Matrix4x4 localToWorldMatrix)
Parameters
Type |
Name |
Description |
TesseraPinned |
pin |
The pin to inspect
|
Matrix4x4 |
localToWorldMatrix |
The matrix indicating the position and rotation of the tile
|
Returns
GetInitialConstraint(TesseraTileBase)
Gets the initial constraint from a given tile.
The tile should be aligned with the grid defined by this generator.
Declaration
public TesseraInitialConstraint GetInitialConstraint(TesseraTileBase tile)
Parameters
Returns
GetInitialConstraint(TesseraTileBase, Cell, CellRotation?)
Gets the initial constraint from a given tile at a given cell.
Declaration
public TesseraInitialConstraint GetInitialConstraint(TesseraTileBase tile, Cell cell, CellRotation? cellRotation)
Parameters
Type |
Name |
Description |
TesseraTileBase |
tile |
The tile to inspect
|
Cell |
cell |
The location of the tile. For big tiles, this is the location of the (0, 0, 0) offset.
|
CellRotation? |
cellRotation |
The rotation of the tile. See Sylves docs for more info.
|
Returns
GetInitialConstraint(TesseraTileBase, Matrix4x4)
Gets the initial constraint from a given tile at a given position.
The tile should be aligned with the grid defined by this generator.
Declaration
public TesseraInitialConstraint GetInitialConstraint(TesseraTileBase tile, Matrix4x4 localToWorldMatrix)
Parameters
Type |
Name |
Description |
TesseraTileBase |
tile |
The tile to inspect
|
Matrix4x4 |
localToWorldMatrix |
The matrix indicating the position and rotation of the tile
|
Returns
GetInitialConstraint(TesseraTileInstance, PinType)
Converts a TesseraTileInstance to a ITesseraInitialConstraint.
This allows you to easily use the output of one generation for later generations
Declaration
public ITesseraInitialConstraint GetInitialConstraint(TesseraTileInstance tileInstance, PinType pinType = PinType.Pin)
Parameters
Returns
GetInitialConstraint(TesseraVolume)
Gets the initial constraint from a given tile.
The tile should be aligned with the grid defined by this generator.
Declaration
public TesseraVolumeFilter GetInitialConstraint(TesseraVolume volume)
Parameters
Returns
GetInitialConstraint(GameObject)
Gets the initial constraint for a given game object.
It checks for a TesseraPinned, TesseraTile or TesseraVolume component.
Declaration
public ITesseraInitialConstraint GetInitialConstraint(GameObject gameObject)
Parameters
Type |
Name |
Description |
GameObject |
gameObject |
|
Returns
SearchInitialConstraints()
Searches the scene for all applicable game objects and converts them to ITesseraInitialConstraint
Declaration
public List<ITesseraInitialConstraint> SearchInitialConstraints()
Returns