Author Topic: sort of simple data binding?  (Read 1481 times)

pretender

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 155
    • View Profile
sort of simple data binding?
« on: January 14, 2014, 01:12:04 PM »
Hi!

I was looking TweenPosition script and there is a option to put mono script for OnFinished field and then to choose a delegate to execute on OnFinished event.

I could not figure out how that works (I know how to use it but don't know how to script some functionality like that)
I need something simpler though, instead of delegates i would need a list of floats or some other variables to choose from. How can i achieve that?

Thank you!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: sort of simple data binding?
« Reply #1 on: January 14, 2014, 09:34:47 PM »
NGUI doesn't come with any kind of built-in data binding. NData add-on for NGUI was doing that, I believe.

I'm also not clear on your question. What option to put a mono script and choose a delegate? UITweener.onFinished is a list of NGUI delegates to which you add to using EventDelegate.Add.