Author Topic: [resolved]setLocalPosition cost huge time  (Read 2692 times)

saviola_zs

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
[resolved]setLocalPosition cost huge time
« on: November 06, 2014, 08:41:24 PM »
I profile the NGUI code, but found a strange thing, I post it at unity forum

http://forum.unity3d.com/threads/set-local-position-unity-cost-huge-time.278509/#post-1837960
« Last Edit: November 06, 2014, 10:13:34 PM by saviola_zs »

saviola_zs

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: setLocalPosition cost huge time
« Reply #1 on: November 06, 2014, 09:57:43 PM »
I found it relate to the scrollView's child, more children more cost!

saviola_zs

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: setLocalPosition cost huge time
« Reply #2 on: November 06, 2014, 10:04:42 PM »
I found the reason, it relate to the boxCollider

saviola_zs

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: [resolved]setLocalPosition cost huge time
« Reply #3 on: November 06, 2014, 10:15:17 PM »
So deactive all boxCollider when dragging scroll view improved great performance