Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

IPanel

interface in UnityEngine.UIElements

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Interface for classes implementing UI panels.

Properties

contextType Describes in which context a VisualElement hierarchy is being ran.
contextualMenuManager The Contextual menu manager for the panel.
dispatcher This Panel EventDispatcher.
focusController Return the focus controller for this panel.
isDirty Checks whether any element within the panel has had any changes to its state since the panel was last rendered.
scaledPixelsPerPoint Gives the current scaled pixels per point value of the panel.
visualTree Root of the VisualElement hierarchy.

Public Methods

Pick Returns the top element at this position. Will not return elements with pickingMode set to PickingMode.Ignore.
PickAll Returns all elements at this position. Will not return elements with pickingMode set to PickingMode.Ignore.