- Home /
if button is highlighted run script (non-mouse)
I am using UnityEngine.UI and EventSystem
how can we check if button is highlighted? (not using OnPointer because I am not using mouse control)
is it possible to just have 1 script manager for entire button condition? (I've seen some answers that gives script on each button to check individual OnPointer) , might be an index or something, but I can't find how to refer UI button in index.
should I ditch UI and use manual array for MenuIndex and do each button script based on index? I think UI is neat , but if it's Impossible to achieve my need , I might consider to not use default UI Button and others.
Thank you for any future response.
Comment