public void AddUpdateSelectedListener(string panelName, string widgetName, UnityAction <BaseEventData> action) { UIBehaviour uiBehaviour = GetUIBehaviour(panelName, widgetName); if (uiBehaviour != null) { uiBehaviour.AddUpdateSelectedListener(action); } }