Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IPanelComponent

Interface for UI panel components, PanelRenderer and UIDocument.
Read time 1 minuteLast updated 4 days ago

Definition

public interface IPanelComponent

Properties

Property

Description

gameObjectThe GameObject this panel component is attached to.
panelSettingsThe panel settings used by this panel component.
parentUIThe parent panel component if this panel component is nested; otherwise, null.
pivotThe pivot point of the world space panel.
pivotReferenceSizeThe reference size mode for the pivot of the world space panel.
positionThe position (relative or absolute) of the world space panel.
sortingOrderThe sorting order of the panel component.
visualTreeAssetThe VisualTreeAsset used by this panel component.
worldSpaceSizeThe fixed size of the world space panel, used when _worldSpaceSizeMode is set to Fixed.
worldSpaceSizeModeThe mode used to determine the size of the world space panel.

Methods

Method

Description

PerformUpdateUpdates the panel component.
PerformValidationValidates the panel component after the associated assets have changed.