- Home /
Question by
infrared511 · Jun 01, 2020 at 04:58 PM ·
uitrigger
OnUpdateSelected not being called
OnUpdateSelected is not being called with a UI dropdown and I can not figure out why. When scripted it is not highlighted like other Unity functions are, but as if I made it myself. Any help would be appreciated.
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class AutoScroll : MonoBehaviour, IUpdateSelectedHandler {
public void OnUpdateSelected(BaseEventData eventData)
{
Execute code;
}
}
Comment