# Inertial Scrolling for Unity 3D A simple C# script to port the inertial scrolling found in native iOS `UIScrollView`s to Unity. Requires [HOTween](http://hotween.demigiant.com) for the 'elastic' bounces on the end. ## Usage Usage is quite simple. Attach the script as a component to the `GameObject` that you would like to be scrolled with inertia. Set the height of the view, and the height of the content, and it should do the rest. ## Sample Code ``` using UnityEngine; using System.Collections; using FS.Handlers; private bool scrolling = false; private FSScrollController scrollController; public class ExampleClass : MonoBehaviour { void Awake() { scrollController = transform.Find("ITEM_TO_SCROLL").gameObject.AddComponent(); } void Update() { scrolling = scroller.ScrollController(); // The above method returns a bool, which can be // used to determine whether or not to allow clicking: //if(!scrolling) clickHandler(); } } ```