Class HexColorConverter
A converter for UnityEngine.Color objects.
Implements
Inherited Members
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 |
| 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 |
|---|---|
| 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 |
| 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)