I’ve been trying to create preview image for every reource in the editor:
https://discourse.urho3d.io/t/quick-expriment-on-editor/3571
Rendertarget is needed to generate the preview image for model/material… However, it seems that I need to wait for the next frame to get the texture ready. Is there a way to get the render result immediately? (Maybe engine->Update/engine->Render will work, which I haven’t tryied. But they cannot be called from script) If so, we could add such a function to the View3D.
Edit: BTW, Constructing a Scene
object in ResourceBackgroundLoaded
event handler will result addref related crash which is very strange…
Thanks.