Transforming a Cube by pressing a button

Here’s how it’s normally done:

  • the button and the gate are in the same blueprint
  • the press E to do something should be in the player BP or in the Player Controller

Input on actors is disabled by default. Enabling it is often not a great idea:

Unless you have a very specific scenario, and this is not it. It would / could work when the game is small and simple. But as soon as you scale things up, it will become difficult to control.


Here’s a couple of related tuts if you want to look deeper into how interactions can be done:

Good luck!