Interface IUxmlAttributes
This type allows UXML attribute value retrieval during the VisualElement instantiation. An instance will be provided to the factory method - see
Namespace: UnityEngine.UIElements
Syntax
public interface IUxmlAttributes
Methods
TryGetAttributeValue(String, out String)
Get the value of an attribute as a string.
Declaration
bool TryGetAttributeValue(string attributeName, out string value)
Parameters
Type | Name | Description |
---|---|---|
String | attributeName | Attribute name. |
String | value | The attribute value or null if not found. |
Returns
Type | Description |
---|---|
Boolean | True if the attribute was found, false otherwise. |