Version: 1.4
LanguageEnglish
  • C#

UxmlTraits

class in UnityEngine.UIElements

/

Inherits from:UIElements.UxmlTraits

/

Implemented in:UnityEngine.UIElementsModule

Description

Defines UxmlTraits for the VisualElement.

Properties

focusable The focusable attribute.
focusIndex The focus index attribute.
uxmlChildElementsDescription Returns an enumerable containing UxmlChildElementDescription(typeof(VisualElement)), since VisualElements can contain other VisualElements.

Public Methods

Init Initialize VisualElement properties using values from the attribute bag.

Inherited Members

Properties

canHaveAnyAttribute Must return true if the UXML element attributes are not restricted to the values enumerated by uxmlAttributesDescription.
uxmlAttributesDescription Describes the UXML attributes expected by the element. The attributes enumerated here will appear in the UXML schema.
uxmlChildElementsDescription Describes the types of element that can appear as children of this element in a UXML file.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答