//methods #region public methods #if UNITY_STANDALONE public override void KeyboardUpdate() { base.KeyboardUpdate(); //TODO:Think about limiting scroll event handling to only trigger when the point is in the desired region var mouseWheelAxis = Input.GetAxis("Mouse ScrollWheel"); if (mouseWheelAxis != 0) { //scroll the scroll rect via scroll bar. fileViewer.Scroll(mouseWheelAxis); } if (Input.GetKeyDown(KeyCode.DownArrow)) { fileViewer.NextInList(); } if (Input.GetKeyDown(KeyCode.UpArrow)) { fileViewer.PreviousInList(); } }