Author Topic: Are there any hidden dangers in using non-orthographic cameras to render UI?  (Read 1361 times)

bac9

  • Full Member
  • ***
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 113
    • View Profile
I'm making a stylized pseudo-3d UI using fisheye non-orthographic camera. Here is a simple gif:



My approach to it is pretty simple - I keep a traditional orthographic camera on while editing, and it's replaced by another camera with all those distortions as the game starts, so I'm spared from dealing with alignment issues and weird distortions while designing the UI content. Still, are there any potential problems that can arise from that setup I should be aware of? Like, for instance, would raycasting continue to work correctly in all cases there?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
If the cameras use the same size and are in the same position, there should be no issues. If they don't, then you might want to put them on different layers as NGUI will attempt to locate the appropriate camera and may not find the one you intended.