Hi,
I am trying to use OnScroll but OnScroll is not being called by the Event System. A ScrollRect is attached to the gameObject and main functions of ScrollRect is working fine at runtime. Here is the code:
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class scrollevents : MonoBehaviour, IScrollHandler
{
public void OnScroll(PointerEventData data)
{
print(data.scrollDelta);
}
}