Author Topic: Data binding possible for formula  (Read 12141 times)

hy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Data binding possible for formula
« on: June 14, 2017, 11:58:31 AM »
Is it possible to bind two data in NGUI, where 1 data changes upon on the other data based on a formula?
for example: z = 2*x+1, can i bind z and x?
if so, how extensive is the formula library? can it basically operate like excel formula library?

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Data binding possible for formula
« Reply #1 on: June 16, 2017, 02:24:20 PM »
No. It's just a UI library for displaying images and text. You'd need to write your own formula processing for an input enabled UI Label and call it in the On Submit event. http://www.tasharen.com/forum/index.php?topic=6752.0

hy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Data binding possible for formula
« Reply #2 on: June 16, 2017, 05:25:32 PM »
thanks for the quick reply. as far as you know, is there any editor or plugin i can use to do that? essentially act like a spreadsheet calc.

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Data binding possible for formula
« Reply #3 on: June 17, 2017, 03:20:00 AM »
Don't know, but I wouldn't have thought so. Very little call for parsing text input to maths formulas. This is a generic Unity question so ask around the forums.