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