Author Topic: Force UI Root to one camera  (Read 1136 times)


  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Force UI Root to one camera
« on: October 02, 2014, 08:04:35 PM »
I am trying to create a spinning carousel menu with 4 sprite. I didn't want to deal with animating the scale and position to fake the sprites' animations to look like they were spinning into the background and foreground and instead I created a second perspective UI camera and have those elements parented under it and offset that camera so it doesn't double render my UI. I need to have a UICamera node on the camera as some buttons follow along as well. My issue is that when I reload my setup scene, that second camera is set as First Camera and my main UI Camera component is pointing to it for UICamera settings and this seems to also pull along the UI Root to that camera, which I use as an anchor for some elements. So those come along as well and my whole UI setup is broken. Is there a way to force the UI Root to my main camera and my main UI camera to always be seen as the first camera?


  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Force UI Root to one camera
« Reply #1 on: October 02, 2014, 11:06:06 PM »
If you use multiple cameras, you need to either ensure that only one's game object is enabled at a time, or that they all draw different layers.