Class UxmlValueMatches
Restricts the value of an attribute to match a regular expression.
Namespace: UnityEngine.UIElements
Syntax
public class UxmlValueMatches : UxmlTypeRestriction
Properties
regex
The regular expression that should be matched by the value.
Declaration
public string regex { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Equals(UxmlTypeRestriction)
Indicates whether the current UxmlValueMatches 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. |