Just wanted to know if IMGUIContainer is supposed to work for runtime. Currently it draws, but everything drawn has a weird offset that increases when position of the IMGUIContainer parent is changed (Even though the local position of the IMGUIContainer is the same).
Hi,
what version do you use?
2021.2.0b6
Unfortunately, IMGUIContainer is not supposed to work for runtime.
Any plans for runtime support? In my case I would like to support the Shapes asset, which works for Editor/IMGUI. Got it working to some degree, but the offsets became a problem.
The availability of the IMGUIContainer class in the UnityEngine assembly was needed for backward compatibility reasons. IMGUIContainers can be used inside the editor but usage outside the editor is unfortunately not something we can support.
While it may currently work in some use cases, proper runtime support for IMGUIContainer would need significant investment on our part because of issues like this one. It’s unfortunately not something we plan on supporting in the foreseeable future.