Class 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
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: Tessera
Assembly: Tessera.dll
Syntax
[AddComponentMenu("Tessera/Count Constraint", 21)]
[RequireComponent(typeof(TesseraGenerator))]
public class CountConstraint : TesseraConstraint
Fields
comparison
Declaration
public CountComparison comparison
Field Value
Type | Description |
---|---|
CountComparison |
count
The count to be compared against.
Declaration
public int count
Field Value
Type | Description |
---|---|
int |
eager
If set, this constraint will attempt to pick tiles as early as possible. This can give a better random distribution, but higher chance of contradictions.
Declaration
public bool eager
Field Value
Type | Description |
---|---|
bool |
tiles
The set of tiles to count
Declaration
public List<TesseraTileBase> tiles
Field Value
Type | Description |
---|---|
List<TesseraTileBase> |