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
CubeCellType
FaceDetails
Records the painted colors for a single face of one cube in a TesseraTile
FaceDirExtensions
InstantiateOutput
MeshData
MeshDeformation
Encapsulates an arbitrary deformation of mesh vertices
MeshUtils
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
SeparationConstraint
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.
TesseraInitialConstraintBuilder
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
TesseraPinConstraint
TesseraPinned
TesseraTile
GameObjects with this behaviour record adjacency information for use with a TesseraGenerator.
TesseraTileBase
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
TesseraVolume
TesseraVolumeFilter
TileEntry
Specifies a tile to be used by TesseraGenerator
TileList
Structs
OrientedFace
Records the painted colors and location of single face of one cube in a TesseraTile
Interfaces
ICellType
ITesseraInitialConstraint
ITesseraTileOutput
Enums
CellRotation
FaceDir
Enum of the 6 faces on a cube.