Class UxmlEnumeration
Restricts the value of an attribute to be taken from a list of values.
Namespace: UnityEngine.UIElements
Syntax
public class UxmlEnumeration : UxmlTypeRestriction
Properties
values
The list of values the attribute can take.
Declaration
public IEnumerable<string> values { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<String> |
Methods
Equals(UxmlTypeRestriction)
Indicates whether the current UxmlEnumeration object is equal to another object of the same type.
Declaration
public override bool Equals(UxmlTypeRestriction other)
Parameters
Type | Name | Description |
---|---|---|
UxmlTypeRestriction | other | The object to compare with. |
Returns
Type | Description |
---|---|
Boolean | True if the otheer object is equal to this one. |