Faced with the problem that when you call the button with the inspector function is called in the same frame, and it is impossible to display zalojennosti inspector before the function begin to run.
Created a delegate, but I don't know what event to use.
Please tell me that which is invoked when OnInspectorGUI already all painted