SubjectNerd-Unity / ReorderableInspector

Automatic reorderable lists for Unity game engine components
MIT License
483 stars 48 forks source link

LMB+RMB stops working in scene view with this asset #26

Open yezNL opened 11 months ago

yezNL commented 11 months ago

I found with Unity 2022.3.f14 and above, that the presence of ReorderableArrayInspector.cs in the project will stop the LMB+RMB from working in the scene view.

This might be related to this fix in f14

I have also reported the bug to Unity.

yezNL commented 11 months ago

Unity responded to my bug with the following, in case it is useful for fixing it.

we have found this specific code area in the script to cause the bug: protected static bool FORCE_INIT = false; [DidReloadScripts] private static void HandleScriptReload() { FORCE_INIT = true; EditorApplication.delayCall = () => { EditorApplication.delayCall = () => { FORCE_INIT = false; }; }; } Specifically, the bug disappears when commenting out this line: EditorApplication.delayCall = () => { EditorApplication.delayCall = () => { FORCE_INIT = false; }; };