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
axis
Declaration
public MirrorConstraint.Axis axis
Field Value
Type | Description |
---|---|
MirrorConstraint.Axis |
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<TesseraTileBase> symmetricTilesX
Field Value
Type | Description |
---|---|
List<TesseraTileBase> |
symmetricTilesY
If hasSymmetricTiles, this set specifies tiles that look the same before and after y-reflection. If hasSymmetricTiles is not set, this list is automatically inferred by inspecting the tile's paint.
Declaration
public List<TesseraTileBase> symmetricTilesY
Field Value
Type | Description |
---|---|
List<TesseraTileBase> |
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<TesseraTileBase> symmetricTilesZ
Field Value
Type | Description |
---|---|
List<TesseraTileBase> |
Methods
SetSymmetricTiles()
Declaration
public void SetSymmetricTiles()