Search Results for

    Show / Hide Table of Contents

    Class TesseraInitialConstraintBuilder

    Utility for creating ITesseraInitialConstraint objects, which describe a variety of different constraints.

    Inheritance
    object
    TesseraInitialConstraintBuilder
    Namespace: Tessera
    Assembly: Tessera.dll
    Syntax
    public class TesseraInitialConstraintBuilder

    Constructors

    TesseraInitialConstraintBuilder(Transform, IGrid)

    Declaration
    public TesseraInitialConstraintBuilder(Transform transform, IGrid grid)
    Parameters
    Type Name Description
    Transform transform
    IGrid grid

    Properties

    Grid

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

    Methods

    CreateVolume(string, List<TesseraTileBase>, List<Cell>)

    Declaration
    public TesseraVolumeFilter CreateVolume(string name, List<TesseraTileBase> tiles, List<Cell> cells)
    Parameters
    Type Name Description
    string name
    List<TesseraTileBase> tiles
    List<Cell> cells
    Returns
    Type Description
    TesseraVolumeFilter

    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, 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
    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

    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

    SearchInitialConstraints()

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

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