Context Buttons are gone after Recompile
- have a script selected in the Inspector that has an [Reorderable] Attribute on a field
- do any change in any script, causing Unity to recompile
Expected: Context Menu buttons are still there Actual: Context Menu buttons disappear. They appear again when the object is deselected and then selected again.
Hmm, I can't seem to replicate this issue with a simple project. I don't have a lot of time to work on this repo now, but if you feel like making a more detailed bug report about what other plugins/extensions you have in your project I may be able to look into this more.
Just tested again with the lastest from master.
Steps:
- empty new project
- import ReorderableInspector
- create a script
public class MyTestScript : MonoBehaviour { [ContextMenu("Some Method")] void DoSomething() {} } - put it on a GameObject

- have that GameObject still selected
- edit the script (add a newline somewhere) in Visual Studio / other external editor
- change focus back to Unity
- for a moment, the compilation wheel spins and the button is still there
- compilation ends and the button disappears

- de-selecting the GameObject and selecting it again makes the button reappear
Note that it seems that this happens to happen always with only ContextMenu and sometimes with both ReorderableAttribute and ContextMenu in the same script.
Just tested again with the lastest from master.
Steps:
- empty new project
- import ReorderableInspector
- create a script
public class MyTestScript : MonoBehaviour { [ContextMenu("Some Method")] void DoSomething() {} }- put it on a GameObject
- have that GameObject still selected
- edit the script (add a newline somewhere) in Visual Studio / other external editor
- change focus back to Unity
- for a moment, the compilation wheel spins and the button is still there
- compilation ends and the button disappears
- de-selecting the GameObject and selecting it again makes the button reappear
Note that it seems that this happens to happen always with only ContextMenu and sometimes with both ReorderableAttribute and ContextMenu in the same script.
I am also getting this with the latest master