文档

Unity Engine

Unity Engine

OnVisualElementChange(VisualElement, VersionChangeType)

Receives notifications for every change that occurs on the panel's visual elements. This method is exclusively available in development builds and the Editor, as it serves as a debug feature that complements the profiling of an application.
阅读时间1 分钟最后更新于 1 个月前

Definition

void OnVisualElementChange(VisualElement element, VersionChangeType changeType)

Parameters

The element that changed.

A string that contains the comma-separated value of what has changed.

Remarks

The number of times the callback is called, the value returned, and the order in which they are returned are subject to change between each minor release of Unity, as this is considered internal. Related to PanelSettings.SetPanelChangeReceiver