- Home /
How to make the camera render RenderTexture if the camera is in another scene?
I created an inventory and it contains Raw Images from RenderTextures. But I have a lot of 3d gameobjects for inventory, and I have a lot of cameras for rendering in one scene. How to make the camera render RenderTexture if the camera is in another scene, and so that the RenderTexture contains a 3D gameobject in the main scene?
Answer by systemicgames · Jan 09 at 03:59 AM
Not really an answer to your question, more of a general suggestion. I've made the mistake of using RenderTextures for inventories before, and it becomes very unoptimized very quickly. I'd suggest creating a sprite of each object, and using that, especially if you're building for mobile, that is the best course of action.
When I used RenderTextures like that, a while ago now, I had each object in the inventory in the same scene, they were set to a specific layer that only one camera would render on...
I hope that helps in some way, again, I ended up just print screening the inventory items and taking the images into a photo-editing software, I then made the backgrounds of each image transparent, much, much better performance.
Your answer
Follow this Question
Related Questions
UI on cameras spawn during runtime 1 Answer
Is there a way to make a Texture2D screenshot that ignores the canvas? 3 Answers
Distribute terrain in zones 3 Answers
Render Texture vs 3D model in screen space - camera 1 Answer
How to get a dropdown menu to change the colour of a reticule on another scene 0 Answers