0
\$\begingroup\$

I've recently finished a tutorial, UE4 Slide Puzzle by Nicholas Thompson. Halfway through the second tutorial, I found out that the blocks / tiles wouldn't respond to my clicks. For example, when I clicked on a tile, it wouldn't print out a Hello message.

I have watched the tutorial so many times already, I've searched it up, looked at my code thoroughly, and I can't find any problems. Here are my blueprints:

  1. Event Graph
  2. Get Move To (Function)

After some debugging, I found out that the problem occured at the start of the function, Mesh Clicked in the Event Graph.

Please help, it would be greatly appreciated. Thank you!

\$\endgroup\$
13
  • \$\begingroup\$ Can you tell us what debugging results led you to discover 'the problem occurred at the start od the function..." — did you find a specific error message or other symptom we could use as a hint? \$\endgroup\$
    – DMGregory
    Jan 25 at 12:52
  • \$\begingroup\$ No, no errors. I just debugged by placing Print Strings. \$\endgroup\$
    – Kupachu
    Jan 25 at 14:14
  • \$\begingroup\$ Have you set the option to input mode Game and UI? If Unreal is not "listening" for the UI (which is how I've assumed you've done this) to be clicked on, no events will be called. \$\endgroup\$
    – Stephen
    Jan 27 at 9:23
  • \$\begingroup\$ @Stephen hi, what do you mean by 'set the option'? What option, and where? Thank you! \$\endgroup\$
    – Kupachu
    Jan 30 at 8:39
  • \$\begingroup\$ You can set the input mode. Game only, game and UI or UI only. If your game is expecting UI only then it won't respond to any clicks inside the game area. Pull off a pin from the Begin Play and set the mode accordingly. \$\endgroup\$
    – Stephen
    Jan 30 at 16:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.