- Home /
Question by
Trollypolly · Sep 15, 2015 at 04:51 PM ·
c#unity 5editor
Is it possible to access OnValidate() when using a custom inspector?
I recently made a custom inspector and I just realized that my OnValidate() is not being called when I edit a variable in the Inspector. Any ideas on how to get my calls back to OnValidate() again while keeping the custom inspector I used?
Comment
Answer by IgorAherne · Apr 16, 2017 at 08:16 PM
invoke OnValidate() manually when GUI.changed == true
Your answer
![](https://koobas.hobune.stream/wayback/20220612033802im_/https://answers.unity.com/themes/thub/images/avi.jpg)