ReorderableInspector icon indicating copy to clipboard operation
ReorderableInspector copied to clipboard

Context Buttons are gone after Recompile

Open hybridherbst opened this issue 7 years ago • 3 comments

  1. have a script selected in the Inspector that has an [Reorderable] Attribute on a field
  2. 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.

hybridherbst avatar Aug 20 '18 18:08 hybridherbst

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.

ChemiKhazi avatar Dec 14 '18 13:12 ChemiKhazi

Just tested again with the lastest from master.

Steps:

  1. empty new project
  2. import ReorderableInspector
  3. create a script public class MyTestScript : MonoBehaviour { [ContextMenu("Some Method")] void DoSomething() {} }
  4. put it on a GameObject image
  5. have that GameObject still selected
  6. edit the script (add a newline somewhere) in Visual Studio / other external editor
  7. change focus back to Unity
  8. for a moment, the compilation wheel spins and the button is still there
  9. compilation ends and the button disappears image
  10. 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.

hybridherbst avatar Dec 17 '18 08:12 hybridherbst

Just tested again with the lastest from master.

Steps:

  1. empty new project
  2. import ReorderableInspector
  3. create a script public class MyTestScript : MonoBehaviour { [ContextMenu("Some Method")] void DoSomething() {} }
  4. put it on a GameObject image
  5. have that GameObject still selected
  6. edit the script (add a newline somewhere) in Visual Studio / other external editor
  7. change focus back to Unity
  8. for a moment, the compilation wheel spins and the button is still there
  9. compilation ends and the button disappears image
  10. 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

mages-gamedev avatar Feb 21 '19 08:02 mages-gamedev