I am currently working on multiplayer project , So as for now we are currently using 3rd app for avatar “ReadyPlayerMe”. I have to display modal avatar image in ui , i am get getting 3d model asset from ReadyPlayerMe, so, the requirement is convert the 3d modal into 2d image.
In this above this there were discussing about how to put the 3d character on 2d screen , But my requirement is to convert the 3dmodal into 2d image
So if you disable the Blue camera then it works as expected. If you destroy the Blue camera, then you are correct the texture disappears. The reason is simple, the renderCameraToElement script is attached to that camera.
And when the script instance is destroyed with the entity, the render target is destroyed too.
You can either disable the camera as soon as the texture is rendered, or simpler if it works for you check renderOnce on script settings (just make sure your model is loaded before the script executes).