Z
Z
Zimaell2021-01-10 17:58:27
Unity
Zimaell, 2021-01-10 17:58:27

How to prefab add an event trigger?

I have a prefab - an object with several pictures and text, it is initialized by a script, I need a method to be activated when clicking on it, I added an event trigger and an action on click to ordinary pictures already placed on the panel, hung a method, etc.
But I can’t hang it on the prefab, tell me how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HaKIJLa, 2021-01-10
@Zimaell

Throw a Button component on it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question