UI Events and Event Triggers - Unity Official Tutorials

preview_player
Показать описание
Watch on the official Unity learn pages here -

In Unity 4.6 we add the new Event System to trigger things in code from your UI. This tutorial is a quick overview of the system and how it works.

Help us caption & translate this video!

Рекомендации по теме
Комментарии
Автор

"for more information on navigating interactable ui elements, see the information linked below"

WHERE???

Coldsteak
Автор

Three years later and this tutorial is still super helpful. I was trying to make a tooltip system for the UI canvas and had no luck until I found this. Thank you so much!

abzergaming
Автор

So many of these "tutorials" just keep glancing over details.

I watch a tutorial to learn, not to get "go look at the documentation, because it has no examples"

VeNoM
Автор

This tutorial is disappointing. I thought the bomb would blow up on button press.

argon
Автор

excellent tutorial, very concise and clear

siegmeyer
Автор

this is very useful. thank you unity and random guy with such a beautiful voice..

minhvo
Автор

thanks, this was as clear as it could get

anormalguy
Автор

Help! I have everything setup seemingly correctly, and my onpointerexit works, but not my onpointerenter. Help! The most confusing thing is that they are both set up the same way.

Dailyfiver
Автор

Is it possible to use the event/trigger system for stuff other than just GUI? I would certainly like that.

vToMy
Автор

how I change, by code, not UI, the parameters that the events will send when they happens?

barbaraboechat
Автор

+1 for adding correct subtitles, not generated ones. Thanks for a Deaf coder.

ruipinheiro
Автор

Is it possible to have multiple events in the on click button? For example i would like to toggle canvas images with the button. Like when i first clicked, i'll show the first picture, then when i click again, it'll show another picture, and on and on.

fluffyflyingpancake
Автор

eventriggers nice feature, but i have a question : i want to open eand close a bag / panel in my ui :

i have a trigger event on my bag : on pointer click : gameobject set active toggle for active is out 

however my ag opens wen i click but witch trigger do i have to use for close bag ?

there should be also an eventrigger to close or do i miss somthing here ? ;-)

paule
Автор

very usefull now i can use costum buttons

ApexArtistX
Автор

How would you separate 2 of the same event trigger(UpdateSelected) on different UI buttons? They seem to cancel each other out...

DieselFuel
Автор

The sound on this video does not play correctly. It cuts out every other second.

Kevin_Foley
Автор

is there any other way to change the left mouse click into a right-click using IPointerDownHandler in UI ?

#SorryForMyRIPEnglish

gatraidris
Автор

I can only see the On Click event, can I access to the On Hover event or something?

Caarloz
Автор

You do realize that assigning event trigger functions in the Editor is shitty as hell? The same thing could just be done in the code as clicking is tedious..

jaakaappi
Автор

Is it possible to connect it somehow with a playmaker?

Temshik_BlackRussia