Class 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
Namespace: Tessera
Assembly: cs.temp.dll.dll
Syntax
public class MirrorConstraint : TesseraConstraint
Fields
hasSymmetricTiles
If set, symmetricTilesX and symmetricTilesZ is used to determine symmetric tiles. Otherwise, they are automatically detected.
Declaration
public bool hasSymmetricTiles
Field Value
Type | Description |
---|---|
Boolean |
symmetricTilesX
If hasSymmetricTiles, this set specifies tiles that look the same before and after x-reflection. If hasSymmetricTiles is not set, this list is automatically inferred by inspecting the tile's paint.
Declaration
public List<TesseraTile> symmetricTilesX
Field Value
Type | Description |
---|---|
List<TesseraTile> |
symmetricTilesZ
If hasSymmetricTiles, this set specifies tiles that look the same before and after z-reflection. If hasSymmetricTiles is not set, this list is automatically inferred by inspecting the tile's paint.
Declaration
public List<TesseraTile> symmetricTilesZ
Field Value
Type | Description |
---|---|
List<TesseraTile> |
Methods
ReflectedEquals(FaceDetails, FaceDetails)
Declaration
public static bool ReflectedEquals(FaceDetails a, FaceDetails b)
Parameters
Type | Name | Description |
---|---|---|
FaceDetails | a | |
FaceDetails | b |
Returns
Type | Description |
---|---|
Boolean |
SetSymmetricTiles()
Declaration
public void SetSymmetricTiles()