Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: gyd on January 10, 2016, 01:51:30 AM

Title: [issue] wrong scripting?
Post by: gyd on January 10, 2016, 01:51:30 AM
UIScrollView, in RestrictWithinBounds (bool instant, bool horizontal, bool vertical)

  1. SpringPanel.Begin(mPanel.gameObject, pos, 13f).strength = 8f;
  2.  

the SpringPanel.strength is always 8f.
Title: Re: [issue] wrong scripting?
Post by: ArenMook on January 11, 2016, 05:13:25 PM
Why is this an issue?
Title: Re: [issue] wrong scripting?
Post by: gyd on January 13, 2016, 04:49:42 AM
hmm..
sorry the issue tag might mislead you,
i want know if the line's coding style has any purpose, or just a mirror mistake ?
Title: Re: [issue] wrong scripting?
Post by: ArenMook on January 13, 2016, 07:25:05 PM
Probably something leftover from ancient times. You can just change it to SpringPanel.Begin(mPanel.gameObject, pos, 8f); to have the same effect without the extra set, not that it had much of an effect. :)
Title: Re: [issue] wrong scripting?
Post by: gyd on January 14, 2016, 01:18:28 PM
ok thanks