Show / Hide Table of Contents

Namespace Tessera

Classes

AnimatedGenerator

Attach this to a TesseraGenerator to run the generator stepwise over several updates, displaying the changes so far.

Note

This class is available only in Tessera Pro

CountConstraint

Keeps track of the number of tiles in a given set, and ensure it is less than / more than a given number.

Note

This class is available only in Tessera Pro

FaceDetails

Records the painted colors for a single face of one cube in a TesseraTile

FaceDirExtensions

MirrorConstraint

Ensures that the generation is symmetric when x-axis mirrored. If there are any tile constraints, they will not be mirrored.

Note

This class is available only in Tessera Pro

PaletteEntry

PathConstraint

Forces a network of tiles to connect with each other, so there is always a complete path between them. Two tiles connect along the path if:

  • Both tiles are in pathTiles (if hasPathTiles set); and
  • The central color of the sides of the tiles leading to each other are in pathColors (if pathColors set)
Note

This class is available only in Tessera Pro

TesseraCompletion

Returned by TesseraGenerator after generation finishes

TesseraConstraint

Abstract class for all generator constraint components.

Note

This class is available only in Tessera Pro

TesseraGenerateOptions

Additional settings to customize the generation at runtime.

TesseraGenerator

GameObjects with this behaviour contain utilities to generate tile based levels using Wave Function Collapse (WFC). Call Generate(TesseraGenerateOptions) or StartGenerate(TesseraGenerateOptions) to run. The generation takes the following steps:

  • Inspect the tiles in tiles and work out how they rotate and connect to each other.
  • Setup any initial constraints that fix parts of the generation (searchInitialConstraints and initialConstraints).
  • Fix the boundary of the generation if skyBox is set.
  • Generate a set of tile instances that fits the above tiles and constraints.
  • Optionally retries or backtrack.
  • Instantiates the tile instances.

TesseraInitialConstraint

Initial constraint objects fix parts of the generation process in places. Use the utility methods on TesseraGenerator to create these objects.

TesseraMeshOutput

Attach this to a TesseraGenerator to output the tiles to a single mesh instead of instantiating them.

Note

This class is available only in Tessera Pro

TesseraPalette

TesseraTile

GameObjects with this behaviour record adjacency information for use with a TesseraGenerator.

TesseraTileInstance

Represents a request to instantiate a TesseraTile, post generation.

TesseraTilemapOutput

Attach this to a TesseraGenerator to output the tiles to a Unity Tilemap component instead of directly instantiating them.

Note

This class is available only in Tessera Pro

TileEntry

Specifies a tile to be used by TesseraGenerator

Structs

OrientedFace

Records the painted colors and location of single face of one cube in a TesseraTile

Interfaces

ITesseraTileOutput

Enums

FaceDir

Enum of the 6 faces on a cube.

Back to top Generated by DocFX