Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.3.10f1
2019.4
2020.1
2020.2
Issue ID
1252396
Regression
No
Simple CustomEditor scripts cause significant performance impact
How to reproduce:
1. Open the attached 'project-1252396.zip' project
2. In the Hierarchy window select 'Test Object'
3. Observe the values of 'Test Component (Script)'
Expected result: less calls are made to OnInspectorGUI() and ISerializationCallbackReceiver() per frame
Actual result: multiple unnecessary calls are made to OnInspectorGUI() and ISerializationCallbackReceiver() per frame
Reproducible with: 2018.4.23f1, 2019.4.1f1, 2020.1.0b12, 2020.2.0a14
Note: entering Play mode, changing value in the Inspector increases the number of calls to the mentioned methods per frame
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "InvalidOperationException: Trying to SetRenderAttachment on a texture..." exception is thrown when using the depth back buffer as an input attachment in Renderer Feature on Vulkan Graphics API
- [HDRP Wizard] Reload Window fails to reload the HDRP Wizard window
- [HDRP Wizard] Fix All button is not presented using the macOS system
- "InvalidCastException: Specified cast is not valid" is thrown when Generating Lighting with "Virtual Offset" enabled in APV, and a static Skinned Mesh Rendered with a Mesh Filter Component is in the Scene
- TMP material doesn't update when using Localized Property to change the font assets
Resolution Note (2020.2.X):
There is a method to check if there has been any changes done to the Monobehavior outside of the editor, without calling setDirty. This peice of code runs every frame and hence the number of calls to the OnBeforeSerialize method. This issue is likely by Design