Author Topic: UIRoot Scale  (Read 3583 times)

vip_prizrak_3

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
    • View Profile
UIRoot Scale
« on: January 13, 2015, 07:40:04 AM »
Hi!
I have some problem. In the interface there are objects for which I want to add a component PolygonCollider2D.
But due to the fact that the scale of UIRoot very small (0.002777778, 0.002777778, 0.002777778) component can not be initialized.
Is it possible to zoom in UIRoot? Or what can be done?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIRoot Scale
« Reply #1 on: January 13, 2015, 03:22:24 PM »
You can, yes. For example if your UIRoot is set to constrained 1280x720, you can change it to 128x72. You will also want to change your UI camera's orthographic size from 1 to 10. You can even get rid of the UIRoot altogether, and leave the object's scale at (1, 1, 1). Adjust the camera's orthographic size accordingly.

imtrobin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: UIRoot Scale
« Reply #2 on: February 09, 2015, 05:29:03 AM »
I'm trying to get rid of UIRoot, but I found the scrollview code is doing a

 mRoot = NGUITools.FindInParents<UIRoot>(mParent)FindInParents