Equivalent to PreviewRenderUtility for UIElements

What is the equivalent to doing PreviewRenderUtility in IMGUI.

Currently I’m using the IMGUContainer however I’m having trouble getting the window to repaint everyframe.

While looking for a solution to force repaint on the container, I ran into a topic about rendering a renderTexture to a UIElement, it made me wonder if some native solution that does what RenderUtility does exists.

If not, how do you refresh a IMGUContainer to repaint for stuff like a rotating quad.

Hello,

You should be able to make the IMGUIContainer repaint by invoking its MarkDirtyRepaint() method.

Hope this helps

I’ve tried this but for some reason its not working. What would be the best way to invoke it? The Update() or would it be preferable to use the scheduler.

Edit* I tried all of that and no matter what I do I can’t seem to get it to wanna update.

Edit* It worked fine, was an issue on my end. Thanks!

1 Like