- Home /
Player UI freezes when rendering to render texture.
I have a UI that takes up the screen. When this UI is open I have my game camera render to a render texture so that I can see it in a small RawImage that I place in the UI.
Inside the editor everything works fine. But inside the player, everything immediately freezes once the UI is opened.
I was stuck on this for several hours, thought I'd post it to help others who may have similar issues.
Answer by AIResearcher · Oct 07, 2014 at 05:19 PM
The new UI does not currently process events if there is no camera rendering to the screen.
As soon as the game camera's render texture is set, the UI will not respond. The editor bypasses this by forcing the UI to process events.
I fixed this by adding another camera that renders nothing (no background, empty layer).