ドキュメント

Unity Engine

Unity Engine

UxmlElementAttribute

Exposes a type of VisualElement to UXML and UI Builder
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

uxmlName

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)

Parameters

uxmlName

The name to use for the element in UXML, such as
my-custom-element
.

supportedTypes

An array of supported child element types. This can be passed as individual
Type
arguments.