Add listeners to event triggers using only code!
Channel: Ahmed Qaddoura
Date: 2020-01-19

#UnityTips #GameDev
Code: https://github.com/AQaddora/UnityTips/blob/master/AddPointerEnterListener.cs

So I have been struggling to do this in the past, and I just found out how to do it, so why don't I share it. Hope you find it helpful.

here is a link to Unity tutorial about event system: https://youtu.be/3NBYqPAA5Es

here is a link from where I found this: 
https://answers.unity.com/questions/854251/how-do-you-add-an-ui-eventtrigger-by-script.html

♥ thanks for watching ♥