Documentation

Unity Engine

Download Unity

Unity Engine

FindPanelRenderer(VisualElement)

Finds the PanelRenderer whose UI hierarchy contains the given element.
Read time 1 minuteLast updated a month ago

Definition

public static PanelRenderer FindPanelRenderer(VisualElement ve)

Parameters

The element to search from.

Returns

Type

Description

PanelRendererThe PanelRenderer containing the element, or null if the element is not part of a PanelRenderer.

Remarks

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