Hello unity masters,
I’m working on an UI project and I want to copy my ui, blurry it and put it behind the same Ui.
I setup a camera that only render the canvas Ui, screen space camera if I’m not wrong.
Right now is working but I’m pretty sure I’m doing it wrong.
In my code I create a render texture, then in my Update code I save the camera render in targettexture in low resolution (fake blurry), after that I null the target texture, if I don’t do this part my ui don’t render at all.
After I got my render texture in low res I just put it inside a raw texture in my canvas with an add shader and upscale.
It’s feel really wrong to do this on update… there is no other way to render the camera inside a texture and keep the camera rendering on screen? I saw something about temporarytexture but I didn’t find any code example.
Also, my render texture never clear, so every time I press play my texture rewrite the older one giving some ghost effect, liking adding images together.
I’m very lost, Appreciate any help!