Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

IUxmlAttributes

interface in UnityEngine.Experimental.UIElements

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

This type allows UXML attribute value retrieval during the VisualElement instantiation. An instance will be provided to the factory method - see UXMLFactoryAttribute.

Public Methods

GetPropertyBoolReturn the value of an attribute as a bool, or the defaultValue if the property is not found.
GetPropertyColorReturn the value of an attribute as a Color, or the defaultValue if the property is not found.
GetPropertyDoubleReturn the value of an attribute as a double, or the defaultValue if the property is not found.
GetPropertyEnumReturn the value of an attribute as a T, or the defaultValue if the property is not found.
GetPropertyFloatReturn the value of an attribute as a float, or the defaultValue if the property is not found.
GetPropertyIntReturn the value of an attribute as an int, or the defaultValue if the property is not found.
GetPropertyLongReturn the value of an attribute as a long, or the defaultValue if the property is not found.
GetPropertyStringReturn the value of an attribute as a string, or the defaultValue if the property is not found.

Did you find this page useful? Please give it a rating: