Hello everyone,
I didn’t know whether to file this under a bug or not. For information, this is my project:
-
Universal RP
-
Renders multiple cameras through a script to the same Render Texture (like a CCTV camera split)
-
Render texture created at runtime
So this script would first assign say 4 cameras a render texture that gets created via the same script, and then gives them all differing positions on that texture so it creates a split view of 4 cameras on one image.
This is to mimick a CCTV camera in the game. It works great in the editor! It even works when you use “Build & Run”
But there lies the problem-- when you launch the game regularly, through the .exe file it creates, it will not work. It simply remains an empty image, the image gets rendered on an object in the game world (a plane) which is visible to a 5th camera (the main camera)
I really, truly have never seen this sort of behavior before. I’ve tried messing with the URP settings or assigning the camera’s a temporary render texture in the prefab (one that exists in the Assets folder), but no dice.
I would very much appreciate if someone here could shed some light on this matter!!
Thank you in advance,
-Gie