UxmlElementAttribute
Exposes a type of VisualElement to UXML and UI Builder
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
UxmlElementAttribute()
Exposes a type of VisualElement to UXML and UI Builder
public UxmlElementAttribute()
UxmlElementAttribute(string)
Declares a custom control with a custom element name.
public UxmlElementAttribute(string uxmlName)
Parameters
Provides a custom name for the element.
UxmlElementAttribute(string, Type[])
Declares a custom control with a custom element name and a list of supported child types.
public UxmlElementAttribute(string uxmlName, params Type[] supportedTypes)