Class OptionalColorConverter
UXML attribute converter for optional Color values.
Inheritance
OptionalColorConverter
Inherited Members
Namespace: Unity.AppUI.Editor
Assembly: Unity.AppUI.Editor.dll
Syntax
public class OptionalColorConverter : OptionalConverter<Color>
Methods
TryParse(string, out Color)
Tries to parse the attribute value as an HTML color string.
Declaration
protected override bool TryParse(string value, out Color v)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string to parse, such as |
| Color | v | The parsed color, or the default color if parsing failed. |
Returns
| Type | Description |
|---|---|
| bool | True if the value could be parsed, False otherwise. |