Author Topic: 3D UI can't zoom  (Read 3139 times)

beings

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 5
    • View Profile
3D UI can't zoom
« on: November 20, 2014, 06:49:28 AM »
In the first case:
1. Use menu NGUI->Create->2D UI;
2. Set UIRoot: Constrained, 1280 * 720, both fit;
3. Add sprite set size:1280 * 720
4. Play
5. Change game view to 1024 * 768,and this panel zoom

In the second case:
1. Use menu NGUI->Create->3D UI;
2. Set UIRoot: Constrained, 1280 * 720, both fit;
3. Add sprite set size:1280 * 720
4. Play
5. Change game view to 1024 * 768,and this panel cut out

I want this panel zoom on 3d ui

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3D UI can't zoom
« Reply #1 on: November 20, 2014, 08:38:24 PM »
UIRoot constrained / flexible size is meant for 2D UIs, not 3D. 3D UIs have perspective, which adds a 3rd dimension to it. Moving the camera forward or back will change how big your UI is. That's how you should be doing zoom with 3D UIs (or just by changing its field of view). Don't do anything with UIRoot. In fact 3D UIs don't even need a UIRoot.

beings

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 5
    • View Profile
Re: 3D UI can't zoom
« Reply #2 on: November 20, 2014, 09:12:39 PM »
    thanks