Class HexColorConverter
A converter for UnityEngine.Color objects.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: IPA.Config.Stores.Converters
Assembly: IPA.Loader.dll
Syntax
public sealed class HexColorConverter : ValueConverter<Color>, IValueConverter
Methods
| Improve this Doc View SourceFromValue(Value, Object)
Declaration
public override Color FromValue(Value value, object parent)
Parameters
Type | Name | Description |
---|---|---|
Value | value | the Value to convert |
System.Object | parent | the object which will own the created object |
Returns
Type | Description |
---|---|
UnityEngine.Color | the deserialized Color object |
Overrides
IPA.Config.Stores.ValueConverter<UnityEngine.Color>.FromValue(IPA.Config.Data.Value, System.Object)
Exceptions
Type | Condition |
---|---|
System.ArgumentException | if |
ToValue(Color, Object)
Converts color of type UnityEngine.Color to a Value node.
Declaration
public override Value ToValue(Color obj, object parent)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Color | obj | the object to serialize |
System.Object | parent | the object which owns |
Returns
Type | Description |
---|---|
Value | a Text node representing |
Overrides
IPA.Config.Stores.ValueConverter<UnityEngine.Color>.ToValue(UnityEngine.Color, System.Object)