文档

Unity Engine

Unity Engine

VisualElementFocusRing(VisualElement, DefaultFocusOrder)

Constructor.
阅读时间1 分钟最后更新于 1 个月前

Definition

public VisualElementFocusRing(VisualElement root, VisualElementFocusRing.DefaultFocusOrder dfo = DefaultFocusOrder.ChildOrder)

Parameters

The root of the element tree for which we want to build a focus ring.

Default ordering of the elements in the ring.

Remarks

Navigation will never focus an element that's not a descendent of the root element. If the root element is not the absolute root of its own visual tree, navigation within the focus ring will wrap around the root element hierarchy when it would otherwise leave it.