Class TesseraPalette
Implements
ISerializationCallbackReceiver
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
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
[CreateAssetMenu(fileName = "Palette", menuName = "Tessera Palette", order = 1)]
public class TesseraPalette : ScriptableObject, ISerializationCallbackReceiver
Constructors
TesseraPalette()
Declaration
public TesseraPalette()
Fields
entries
Declaration
public List<PaletteEntry> entries
Field Value
Type | Description |
---|---|
List<PaletteEntry> |
matchOverrides
Declaration
public Dictionary<(int, int), bool> matchOverrides
Field Value
Type | Description |
---|---|
Dictionary<(int, int), bool> |
Properties
defaultPalette
Declaration
public static TesseraPalette defaultPalette { get; }
Property Value
Type | Description |
---|---|
TesseraPalette |
entryCount
Declaration
public int entryCount { get; }
Property Value
Type | Description |
---|---|
int |
Methods
GetColor(int)
Declaration
public Color GetColor(int i)
Parameters
Type | Name | Description |
---|---|---|
int | i |
Returns
Type | Description |
---|---|
Color |
GetEntry(int)
Declaration
public PaletteEntry GetEntry(int i)
Parameters
Type | Name | Description |
---|---|---|
int | i |
Returns
Type | Description |
---|---|
PaletteEntry |
Match(int, int)
Declaration
public bool Match(int a, int b)
Parameters
Type | Name | Description |
---|---|---|
int | a | |
int | b |
Returns
Type | Description |
---|---|
bool |
Match(FaceDetails, FaceDetails)
Declaration
public bool Match(FaceDetails a, FaceDetails b)
Parameters
Type | Name | Description |
---|---|---|
FaceDetails | a | |
FaceDetails | b |
Returns
Type | Description |
---|---|
bool |
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()
Implements
UnityEngine.ISerializationCallbackReceiver