Show / Hide Table of Contents

Class TesseraInitialConstraintBuilder

Inheritance
Object
TesseraInitialConstraintBuilder
Namespace: Tessera
Assembly: cs.temp.dll.dll
Syntax
public class TesseraInitialConstraintBuilder

Properties

Grid

Declaration
public IGrid Grid { get; }
Property Value
Type Description
IGrid

Methods

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
Type Description
ITesseraInitialConstraint

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
Type Name Description
TesseraPinned pin

The pin to inspect

Returns
Type Description
ITesseraInitialConstraint

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
Type Description
ITesseraInitialConstraint

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
Type Name Description
TesseraTileBase tile

The tile to inspect

Returns
Type Description
TesseraInitialConstraint

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
Type Description
TesseraInitialConstraint

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
Type Name Description
TesseraTileInstance tileInstance
PinType pinType
Returns
Type Description
ITesseraInitialConstraint

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
Type Name Description
TesseraVolume volume
Returns
Type Description
TesseraVolumeFilter

SearchInitialConstraints()

Searches the scene for all applicable game objects and converts them to ITesseraInitialConstraint

Declaration
public List<ITesseraInitialConstraint> SearchInitialConstraints()
Returns
Type Description
List<ITesseraInitialConstraint>
Back to top Generated by DocFX