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
BiMap<U, V>
Represents a 1:1 mapping between two types
BorderConstraint
Forces cells near the edge to be a particular tile. Compare with skyBox.
Note
This class is available only in Tessera Pro
BorderItem
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
CubeDirExtensions
CubeFaceDirExtensions
EdgeDetection
This utility analyses a mesh, finding a hash that indicates what it can connect two. There's two steps to the analysis.
- For each corner of the cell, determine if it is inside or outside the mesh. This handles non watertight meshes.
- For each face of the cell, find the mesh edges coincident to that face.
The hashes are unique to a specific face and specific rotation of the tile, and are structured in a way that you can get the same has for a left pointing and right pointing face if they share the same mesh edges and corners.
EdgeDetection.Face
EnumeratorWithResult<T>
An IEnumerator that also records a given result when it is finished. It is intended for use with Unity coroutines.
FaceDetails
Records the painted colors for a single face of one cube in a TesseraTile
HexGeometryUtils
Note
This class is available only in Tessera Pro
HexPrismDirExtensions
Note
This class is available only in Tessera Pro
HexPrismFaceDirExtensions
Note
This class is available only in Tessera Pro
InfiniteGenerator
InstantiateOutput
MeshUtils
Utility for working with meshes.
Note
This class is available only in Tessera Pro
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
PrefixLookup<T>
Stores key-value pairs, with efficient searching for the longest key that is a prefix of a given string.
SeparationConstraint
SquareFaceDirExtensions
SquareFaceExtensions
SylvesConversions
Utilities for converting legacy Tessera enumerations to Sylves equivalents
SylvesExtensions
TRS
Rerpresents a position / rotation and scale. Much like a Transform, but without the association with a unity object.
TesseraBaseSceneConstraintComponent
Marks any component in the scene that can be interpreted by Tessera as a constraint. These eventually become ITesseraInitialConstraint objects
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 (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.
TesseraHexTile
GameObjects with this behaviour record adjacency information for use with a TesseraGenerator.
TesseraInitialConstraint
Initial constraint objects fix parts of the generation process in places. Use the utility methods on TesseraGenerator to create these objects.
TesseraInitialConstraintBuilder
Utility for creating ITesseraInitialConstraint objects, which describe a variety of different constraints.
TesseraInstantiateEvent
TesseraInstantiateOutput
Attach this to a TesseraGenerator to control how tiles are instantiated.
Note
This class is available only in Tessera Pro
TesseraInstantiateOutputTileMapping
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
TesseraMultipassGenerator
TesseraMultipassPass
TesseraPalette
TesseraPinConstraint
TesseraPinned
TesseraSquareTile
GameObjects with this behaviour record adjacency information for use with a TesseraGenerator.
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
TesseraTransformedTile
Definesa Unity tile that has a specific transform applied to it. Used by TesseraTilemapOutput
TesseraTrianglePrismTile
GameObjects with this behaviour record adjacency information for use with a TesseraGenerator.
TesseraUncertainty
If this is set on the "uncertainty tile" used by TesseraGenerator/AnimatedGenerator, it will be populated with data about which tiles are actually possible.
TesseraVolume
TesseraVolumeFilter
TileEntry
Specifies a tile to be used by TesseraGenerator
TileList
TrianglePrismDirExtensions
Note
This class is available only in Tessera Pro
TrianglePrismFaceDirExtensions
Note
This class is available only in Tessera Pro
TrianglePrismGeometryUtils
Note
This class is available only in Tessera Pro
UnityEngineInterface
Structs
CubeRotation
HexRotation
Represents rotations / reflections of a hexagon
Note
This class is available only in Tessera Pro
ModelTile
Actual tiles used internally. There's a many-to-one relationship between ModelTile and TesseraTile due to rotations and "big" tile support.
OrientedFace
Legacy class used when serializing. You should use SylvesOrientedFace instead. Records the painted colors and location of single face of one cube in a TesseraTile
SquareRotation
Represents rotations / reflections of a square
SubFaceTuple
Each face of a tessera tile is split up into several sub faces that are independently paintable. There's 9 for a square face - one center, 4 corners and 4 "dirs". The corner / dir values come from Sylves.SquareCellType, and similarly for faces with another number of sides. SubFaceTuple is used for address a specific subface.
It's an improvement on the earlier enum SubFace, which covers the same thing and has yet to be deprecated.
SylvesOrientedFace
Records the painted colors and location of single face of one cube in a TesseraTile
TriangleRotation
Represents rotations / reflections of a hexagon
Note
This class is available only in Tessera Pro
Interfaces
IEngineInterface
ISubFaceInfo
ITesseraInitialConstraint
ITesseraTileOutput
Enums
AnimatedGenerator.AnimatedGeneratorState
CellFaceDir
Legacy class used to represents a particular face of a generic cell when serializing. You should use Sylves.CellDir instead.
CellRotation
Legacy class used to represents a rotation of a generic cell when serializing. You use use Sylves.CellRotation instead.
ChunkCleanupType
CubeFaceDir
Enum of the 6 faces on a cube.
FaceType
FailureMode
HexPrismFaceDir
Enum of the 8 faces on a hex prism.
Note
This class is available only in Tessera Pro
MirrorConstraint.Axis
ModelType
Different models Tessera supports. The model dictates how nearby tiles relate to each other.
PinType
RotationGroupType
SquareFaceDir
Enum of the 4 sides of a square.
SubFaceType
SylvesHexPrismCorner
SylvesHexPrismDir
SylvesTrianglePrismCorner
SylvesTrianglePrismDir
TesseraInstantiateBehaviour
TesseraMeshOutputCollider
TesseraMeshOutputMaterialGrouping
TesseraMultipassPassType
TesseraWfcAlgorithm
TrianglePrismFaceDir
Note
This class is available only in Tessera Pro