Version: 2023.2
LanguageEnglish
  • C#

PanelSettings.SetPanelChangeReceiver

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

Declaration

public void SetPanelChangeReceiver(UIElements.IDebugPanelChangeReceiver value);

Description

Sets a custom IPanelChangeReceiver in the panelChangeReceiver setter to receive every change event. This method is available only in development builds and the editor, as it is a debug feature to go along the profiling of an application.

Note that the values returned may change over time when the underlying architecture is modified. As this is called at every change marked on any visual element of the panel, the overhead is not negligible. The callback will not be called in release builds as the method is stripped.