Issues with UI Camera

jrock84
Posts: 4
Joined: Tue Jan 03, 2017 3:35 pm

Issues with UI Camera

Postby jrock84 » Tue Jan 03, 2017 3:37 pm

Hello,

I hope you are doing well today! I am having issues with the UI camera. It it superseding the camera attached to my player for image effects and post processing. How do I rectify this?

Thanks!

User avatar
jjahuijbregts
Site Admin
Posts: 1747
Joined: Wed Apr 22, 2015 7:25 pm
Contact:

Re: Issues with UI Camera

Postby jjahuijbregts » Wed Jan 04, 2017 11:00 am

jrock84 wrote:Hello,

I hope you are doing well today! I am having issues with the UI camera. It it superseding the camera attached to my player for image effects and post processing. How do I rectify this?

Thanks!


Is your UI camera only rendering the UI layer, or does it also render other layers?

jrock84
Posts: 4
Joined: Tue Jan 03, 2017 3:35 pm

Re: Issues with UI Camera

Postby jrock84 » Wed Jan 04, 2017 8:44 pm

It's basically a prefab made out of the UI that's in the example scene. So, the camera was a direct copy of that. Just UI.

Image

jrock84
Posts: 4
Joined: Tue Jan 03, 2017 3:35 pm

Re: Issues with UI Camera

Postby jrock84 » Fri Jan 06, 2017 3:16 pm

Any ideas on this?

Thanks

User avatar
jjahuijbregts
Site Admin
Posts: 1747
Joined: Wed Apr 22, 2015 7:25 pm
Contact:

Re: Issues with UI Camera

Postby jjahuijbregts » Sat Jan 07, 2017 6:21 pm

jrock84 wrote:Any ideas on this?

Thanks


I think it's a Unity 'thing'. The same issue happens in the demo scenes. The only way I can think of working around this, would be to render to a RenderTexture and blit the final result to the screen after the post effects have done their wok.

jrock84
Posts: 4
Joined: Tue Jan 03, 2017 3:35 pm

Re: Issues with UI Camera

Postby jrock84 » Sun Jan 08, 2017 5:40 am

I fixed it by writing a script to disable the UICamera when pressing my UFPS menu button and the re-enabling upon exit of the GUI. Thanks for your help.


Return to “Visuals”

Who is online

Users browsing this forum: No registered users and 1 guest