Author Topic: Using UITween with non NGUI Components  (Read 2456 times)

motionsmith

  • Guest
Using UITween with non NGUI Components
« on: March 25, 2013, 06:34:13 PM »
Can I use UITween classes on components that aren't related to NGUI, like the main camera?

I'm noticing some strangeness when I try this. Namely, the camera's position is being reported to be much larger than it really is (is it being converted to "pixel space"?).

If not, any recommendations for a standalone tweening package? Please don't recommend Ani.Mate, I've run into several issues with it (not the least of which that it's written in boo).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Using UITween with non NGUI Components
« Reply #1 on: March 25, 2013, 08:51:51 PM »
Yes you can, but keep in mind that the tween scale works with local position, not absolute position.

mindlube

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
Re: Using UITween with non NGUI Components
« Reply #2 on: March 25, 2013, 11:50:23 PM »
I would stay away from iTween. I have heard that http://www.holoville.com/hotween/ is good, but I haven't learned it yet. The NGUI tweeners are good too, if you can make them fit your needs.

motionsmith

  • Guest
Re: Using UITween with non NGUI Components
« Reply #3 on: March 26, 2013, 12:25:10 PM »
NGUI's tween was not working for me, maybe because it's limited to local dimensions. I tried HOTween and iTween. Both worked for me, but ultimately I ended up going with iTween because it looked a bit more stable and active.

Thanks

mindlube

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
Re: Using UITween with non NGUI Components
« Reply #4 on: March 26, 2013, 12:29:08 PM »
Cool- I actually like iTween, but I just noticed it's performance is sub-par, for some operations.