Search Results for

    Show / Hide Table of Contents

    Class TesseraTileBase

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    TesseraTileBase
    TesseraHexTile
    TesseraSquareTile
    TesseraTile
    TesseraTrianglePrismTile
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(string, float)
    MonoBehaviour.InvokeRepeating(string, float, float)
    MonoBehaviour.CancelInvoke(string)
    MonoBehaviour.IsInvoking(string)
    MonoBehaviour.StartCoroutine(string)
    MonoBehaviour.StartCoroutine(string, object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(string)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, out Component)
    Component.TryGetComponent<T>(out T)
    Component.GetComponent(string)
    Component.GetComponentInChildren(Type, bool)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(bool)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, bool)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(bool)
    Component.GetComponentsInChildren<T>(bool, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, bool)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(bool)
    Component.GetComponentsInParent<T>(bool, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(string)
    Component.SendMessageUpwards(string, object, SendMessageOptions)
    Component.SendMessageUpwards(string, object)
    Component.SendMessageUpwards(string)
    Component.SendMessageUpwards(string, SendMessageOptions)
    Component.SendMessage(string, object)
    Component.SendMessage(string)
    Component.SendMessage(string, object, SendMessageOptions)
    Component.SendMessage(string, SendMessageOptions)
    Component.BroadcastMessage(string, object, SendMessageOptions)
    Component.BroadcastMessage(string, object)
    Component.BroadcastMessage(string)
    Component.BroadcastMessage(string, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Tessera
    Assembly: Tessera.dll
    Syntax
    public abstract class TesseraTileBase : MonoBehaviour, ISerializationCallbackReceiver

    Fields

    cellSize

    The size of one cell in the tile. NB: This field is only used in the Editor - you must set cellSize to match.

    Declaration
    [Tooltip("The size of one cell in the tile.")]
    [FormerlySerializedAs("tileSize")]
    public Vector3 cellSize
    Field Value
    Type Description
    Vector3

    center

    Where the center of tile is. For big tiles that occupy more than one cell, it's the center of the cell with offset (0, 0, 0). The tile may not actually occupy that cell!

    Declaration
    [Tooltip("Where the center of tile is.")]
    public Vector3 center
    Field Value
    Type Description
    Vector3

    instantiateChildrenOnly

    If set, when being instantiated by a Generator, only children will get constructed. If there are no children, then this effectively disables the tile from instantiation.

    Declaration
    [Tooltip("If set, when being instantiated by a Generator, only children will get constructed.")]
    public bool instantiateChildrenOnly
    Field Value
    Type Description
    bool

    palette

    Set this to control the colors and names used for painting on the tile. Defaults to defaultPalette.

    Declaration
    [Tooltip("Set this to control the colors and names used for painting on the tile.")]
    public TesseraPalette palette
    Field Value
    Type Description
    TesseraPalette

    reflectable

    If true, when generating, reflections in the x-axis will be used.

    Declaration
    [Tooltip("If true, when generating, reflections in the x-axis will be used.")]
    public bool reflectable
    Field Value
    Type Description
    bool

    rotatable

    If true, when generating, rotations of the tile will be used.

    Declaration
    [Tooltip("If true, when generating, rotations of the tile will be used.")]
    public bool rotatable
    Field Value
    Type Description
    bool

    rotationGroupType

    If rotatable is on, specifies what sorts of rotations are used.

    Declaration
    [Tooltip("If rotatable is on, specifies what sorts of rotations are used.")]
    public RotationGroupType rotationGroupType
    Field Value
    Type Description
    RotationGroupType

    sylvesFaceDetails

    A list of outward facing faces. For a normal cube tile, there are 6 faces. Each face contains adjacency information that indicates what other tiles can connect to it. It is recommended you only edit this via the Unity Editor, or Get(Vector3Int, CellFaceDir) and AddOffset(Vector3Int)

    Declaration
    [NonSerialized]
    public List<SylvesOrientedFace> sylvesFaceDetails
    Field Value
    Type Description
    List<SylvesOrientedFace>

    sylvesOffsets

    A list of cells that this tile occupies. For a normal cube tile, this just contains Vector3Int.zero, but it will be more for "big" tiles. It is recommended you only edit this via the Unity Editor, or AddOffset(Vector3Int) and RemoveOffset(Vector3Int)

    Declaration
    [NonSerialized]
    public List<Vector3Int> sylvesOffsets
    Field Value
    Type Description
    List<Vector3Int>

    symmetric

    If true, Tessera assumes that the tile paint matches the the symmetry of the tile. Disable this if there are important details of your tile that the paint doesn't show. Turning symmetric on can have some performance benefits, and affects the behaviour of the mirror constraint.

    Declaration
    [Tooltip("If true, Tessera assumes that the tile paint matches the the symmetry of the tile.\nIf false, assumes every possible rotation is unique and not interchangable.")]
    public bool symmetric
    Field Value
    Type Description
    bool

    Properties

    SubFaceInfo

    Declaration
    public abstract ISubFaceInfo SubFaceInfo { get; }
    Property Value
    Type Description
    ISubFaceInfo

    SylvesCellGrid

    Declaration
    public abstract IGrid SylvesCellGrid { get; }
    Property Value
    Type Description
    IGrid

    SylvesCellType

    Declaration
    public abstract ICellType SylvesCellType { get; }
    Property Value
    Type Description
    ICellType

    Methods

    AddOffset(Vector3Int)

    Configures the tile as a "big" tile that occupies several cells. Keeps sylvesOffsets and sylvesFaceDetails in sync.

    Declaration
    public void AddOffset(Vector3Int o)
    Parameters
    Type Name Description
    Vector3Int o

    Get(Vector3Int, CellDir)

    Finds the face details for a cell with a given offeset.

    Declaration
    public FaceDetails Get(Vector3Int offset, CellDir dir)
    Parameters
    Type Name Description
    Vector3Int offset
    CellDir dir
    Returns
    Type Description
    FaceDetails

    Get(Vector3Int, CellFaceDir)

    Finds the face details for a cell with a given offeset.

    Declaration
    public FaceDetails Get(Vector3Int offset, CellFaceDir faceDir)
    Parameters
    Type Name Description
    Vector3Int offset
    CellFaceDir faceDir
    Returns
    Type Description
    FaceDetails

    GetSharedMesh()

    Finds the mesh associated with this tile, or null

    Declaration
    public Mesh GetSharedMesh()
    Returns
    Type Description
    Mesh

    OnAfterDeserialize()

    Implement this method to receive a callback after Unity deserializes your object.

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Implement this method to receive a callback before Unity serializes your object.

    Declaration
    public void OnBeforeSerialize()

    RemoveOffset(Vector3Int)

    Configures the tile as a "big" tile that occupies several cells. Keeps sylvesOffsets and sylvesFaceDetails in sync.

    Declaration
    public void RemoveOffset(Vector3Int o)
    Parameters
    Type Name Description
    Vector3Int o

    TryGet(Vector3Int, CellDir, out FaceDetails)

    Finds the face details for a cell with a given offeset.

    Declaration
    public bool TryGet(Vector3Int offset, CellDir faceDir, out FaceDetails details)
    Parameters
    Type Name Description
    Vector3Int offset
    CellDir faceDir
    FaceDetails details
    Returns
    Type Description
    bool

    TryGet(Vector3Int, CellFaceDir, out FaceDetails)

    Finds the face details for a cell with a given offeset.

    Declaration
    public bool TryGet(Vector3Int offset, CellFaceDir faceDir, out FaceDetails details)
    Parameters
    Type Name Description
    Vector3Int offset
    CellFaceDir faceDir
    FaceDetails details
    Returns
    Type Description
    bool

    Implements

    UnityEngine.ISerializationCallbackReceiver
    In this article
    Back to top Generated by DocFX