FindUIDocument(VisualElement)
Finds the UIDocument whose UI hierarchy contains the given element.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static UIDocument FindUIDocument(VisualElement ve)
Parameters
The element to search from.
Returns
Type | Description |
|---|---|
| UIDocument | The 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.