Author Topic: Scaling UI Root  (Read 4567 times)

fzhfzh

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Scaling UI Root
« on: March 05, 2014, 09:00:42 PM »
I am trying to use Unity 4.3 2D framework together with NGUI. Right now I only need to use NGUI's bitmap font system. However, I have to use UIRoot and NGUI's own camera system if I want to add any NGUI Label. A painful problem I have is that UIRoot will always set it's own scale to 0.004166667 and I can't change it. In a previous project, I just sucked it up and scaled all my unity 2D sprites down, it was quite a pain. I could set the camera scale to be the same but it will only change in-game, the panel in editor is still a lot smaller making it difficult to position things. I hope there are better methods to this. Would really appreciate if anyone know of any ways where I could have NGUI's scaling being same as Unity's scale. Thanks.

If there are any ways to use the NGUI font without having to go through UIRoot it would be great as well.

fzhfzh

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Scaling UI Root
« Reply #1 on: March 06, 2014, 12:08:16 AM »
Ah ok solved it after some searching. Turns out that UIRoot could be removed. Though that I had to add UIRoot as every time I add a widget UIRoot is automatically added and the widget could not be moved out. Turns out to be the panel that is needed.