Problems getting UI elements to activate/deactivate on mouse over?

Hi All,

Just working on a school project and I came into an issue. Previously I’ve used on mouse over to make text activate/deactivate in the game world. However it doesn’t seem to work on UI features. I was attempting to make a semi-transparent panel activate/deactivate on mouse over to create a UI effect; I have already unlocked the cursor and made it visible. Does anyone know what I need to do to make this happen? I have heard of on pointer enter, will this accomplish what I need?

Many thanks in advance.

You can use EventTriggers built-in with Unity3D. Select a gameobject > Add Component > Search “EventTrigger” > Add the EventTrigger you want > Assign the public function you wanted to call upon trigger. You can also add EvenTriggers with script. Please read the documentation about that here.