I want to load new babylon file in my project and get preview of this model as sprite.
So I load the babylon file and then create a new camera in my project, the camera and babylon file have the same layerMask and then use BABYLON.Tools.CreateScreenshotUsingRenderTarget to get the preview of the loaded model.
But I can’t know when to use BABYLON.Tools.CreateScreenshotUsingRenderTarget because i don’t know when the model of babylon file has been rendered complete. The preview will be incomplete.
I have tried use node.isReady(true), but it don’t work.
Is there any other method to know the model has been rendered complete?