Class NamedColorSet
Set of named colors.
Inheritance
object
UnityEngine.Object
UnityEngine.ScriptableObject
NamedColorSet
Inherited Members
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance(string)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, bool)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, bool)
UnityEngine.Object.Destroy(UnityEngine.Object, float)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, bool)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, float)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: InsaneScatterbrain.MapGraph
Syntax
public class NamedColorSet : DataSetScriptableObject<NamedColor>, IVersioned, IDataSet<NamedColor>, IDataSet, ISerializationCallbackReceiver
Properties
OpenSet
Declaration
protected override IOpenDataSet<NamedColor> OpenSet { get; }
Property Value
Type | Description |
---|---|
IOpenDataSet<NamedColor> |
Overrides
InsaneScatterbrain.ScriptGraph.DataSetScriptableObject<InsaneScatterbrain.MapGraph.NamedColor, InsaneScatterbrain.ScriptGraph.IOpenDataSet<InsaneScatterbrain.MapGraph.NamedColor>>.OpenSet
Methods
Add(NamedColor)
Declaration
public override void Add(NamedColor element)
Parameters
Type | Name | Description |
---|---|---|
NamedColor | element |
Overrides
InsaneScatterbrain.ScriptGraph.DataSetScriptableObject<InsaneScatterbrain.MapGraph.NamedColor, InsaneScatterbrain.ScriptGraph.IOpenDataSet<InsaneScatterbrain.MapGraph.NamedColor>>.Add(InsaneScatterbrain.MapGraph.NamedColor)
ContainsColor(Color32)
Gets whether the color is defined inside the set.
Declaration
public bool ContainsColor(Color32 color)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Color32 | color | The color. |
Returns
Type | Description |
---|---|
bool | True if the color exists inside the set, false otherwise. |
GetColorById(string)
Gets the color by ID.
Declaration
public Color32 GetColorById(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The named color's ID. |
Returns
Type | Description |
---|---|
UnityEngine.Color32 | The color. |
GetColorByName(string)
Gets the color by name.
Declaration
public Color32 GetColorByName(string colorName)
Parameters
Type | Name | Description |
---|---|---|
string | colorName | The named color's name. |
Returns
Type | Description |
---|---|
UnityEngine.Color32 | The color. |
GetId(string)
Declaration
public string GetId(string colorName)
Parameters
Type | Name | Description |
---|---|---|
string | colorName |
Returns
Type | Description |
---|---|
string |
GetName(Color32)
Gets the color name by color.
Declaration
public string GetName(Color32 color)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Color32 | color | The color. |
Returns
Type | Description |
---|---|
string | The color name. |
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
Remove(string)
Removes the color with the given name from the set.
Declaration
public override void Remove(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The ID of the named color to remove. |
Overrides
InsaneScatterbrain.ScriptGraph.DataSetScriptableObject<InsaneScatterbrain.MapGraph.NamedColor, InsaneScatterbrain.ScriptGraph.IOpenDataSet<InsaneScatterbrain.MapGraph.NamedColor>>.Remove(string)
SetColor(string, Color)
Declaration
public void SetColor(string id, Color newColor)
Parameters
Type | Name | Description |
---|---|---|
string | id | |
UnityEngine.Color | newColor |
Implements
UnityEngine.ISerializationCallbackReceiver