Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: pawankumar113 on May 13, 2014, 01:52:23 AM

Title: How to control Scroll Bar using button.
Post by: pawankumar113 on May 13, 2014, 01:52:23 AM
I saw the Example 7 - Scroll View (Panel) in NGUI. But how to use button to Scroll the Object.
Title: Re: How to control Scroll Bar using button.
Post by: ArenMook on May 13, 2014, 08:44:32 AM
Modify the scroll bar's value using some logic, for example:
  1. void OnClick ()
  2. {
  3.     scrollBar.value += 0.1f;
  4. }