ドキュメント

Unity Engine

Unity Engine

FindUIDocument(VisualElement)

Finds the UIDocument whose UI hierarchy contains the given element.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public static UIDocument FindUIDocument(VisualElement ve)

Parameters

The element to search from.

Returns

Type

Description

UIDocumentThe UIDocument containing the element, or null if the element is not part of a UIDocument.

Remarks

If the element is inside a nested UIDocument, the closest one is returned.