Show / Hide Table of Contents

Namespace Tessera

Classes

FaceDetails

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

FaceDirExtensions

TesseraCompletion

Returned by TesseraGenerator after generation finishes

TesseraGenerateOptions

Additoinal 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.

TesseraTile

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

TesseraTileInstance

Represents a request to instantiate a TesseraTile, post generation.

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

Enums

FaceDir

Enum of the 6 faces on a cube.

Back to top Generated by DocFX