Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FindPanelRenderer(VisualElement)

Finds the PanelRenderer whose UI hierarchy contains the given element.
Read time 1 minuteLast updated 13 days 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.