Q
Q
Quark2021-05-26 13:21:41
unreal engine
Quark, 2021-05-26 13:21:41

Why doesn't the OnClicked event of a button work in UE4?

I'm trying to add OnClickedan event to my button so that when clicked, I can go to another level. But for some reason it doesn't work for me. It seems to me that the button simply does not register a click, since even the basic button does not change the texture when pressed.

Here's how I tried to do it:
60ae20061bfdd810026255.png
60ae20267ed3f444383289.png
60ae204fd86f3528228600.png

Very important: I have a 3D menu, with the usual 2D everything works fine. You might think that the problem is a collision or a trace, but OnHoveredthe event works great and does whatever I want.

What did I do wrong and how can I fix it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Q
Quark, 2021-05-27
@Quark_Hell

Solution:
If you are making a 3D menu, then do not forget to activate this checkbox. Otherwise, OnClicked events will not work.
60afc372d187f463533228.png

N
Nekit Medvedev, 2021-05-27
@NIKROTOS

and the button is closed?

K
Kirill Pavlov, 2021-06-03
@thelegend3004

Well, or just cut down focusable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question