Example request render image on 3d UI

Currently I can only find script based image render on 2d UI. Can we get a script based rendering example on 3d UI?
Thank you!

Did you try setting the object to an overlay?

I havn’t checked it out myself but I think the PhysicsDrag Bundled Trait would be a helpful example.