OnGUI never called on version 2020.3
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
// ... }
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?
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.
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: @.***>
Closing due to lack of activity and the bug not reproducing in 2020.3