missing-component-info icon indicating copy to clipboard operation
missing-component-info copied to clipboard

OnGUI never called on version 2020.3

Open INeatFreak opened this issue 3 years ago • 3 comments

At MissingComponentHelper script the OnGUI() function is not called after succesfully adding it to container.onGUIHandler action.

Debug.Log("ADDED ONGUI TO EVENT"); // get's called container.onGUIHandler += OnGUI;

void OnGUI() { Debug.Log($"ONGUI"); // does not get called

// ... }

INeatFreak avatar Aug 12 '22 14:08 INeatFreak

Hello, not sure what you mean - the OnGui event gets only called for objects with missing components.

Is the missing component info not showing for you when you have a project with missing components? (Note: it only works if you had the package installed before a component was missing!!!)

Could you provide a bit more information?

marwie avatar Aug 14 '22 07:08 marwie

Yes, I had a missing component that I've deleted after the package import, also tested on the provided demo scenes. Up to the "container.onGUIHandler += OnGUI;" everything works fine, but after this the onGUIHandler event never calls the OnGUI method. I think it might be an unity bug as I've tested on 2020.3 version.

INeatFreak avatar Aug 14 '22 10:08 INeatFreak

Strange, the test project is also 2020.3. Could you upload your test project maybe?

Neat Freak @.***> schrieb am So., 14. Aug. 2022, 12:15:

Yes, I had a missing component that I've deleted after the package import, also tested on the provided demo scenes. Up to the "container.onGUIHandler += OnGUI;" everything works fine, but after this the onGUIHandler event never calls the OnGUI method. I think it might be an unity bug as I've tested on 2020.3 version.

— Reply to this email directly, view it on GitHub https://github.com/needle-tools/missing-component-info/issues/2#issuecomment-1214327663, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGZAQ2JJZJOU7FSBAQX3T3VZDBLBANCNFSM56L4TICQ . You are receiving this because you commented.Message ID: @.***>

marwie avatar Aug 14 '22 10:08 marwie

Closing due to lack of activity and the bug not reproducing in 2020.3

marwie avatar Apr 16 '23 22:04 marwie