Dragging and Dropping a Simple Cube

Not sure what I am doing wrong here honestly. Looking at this it makes sense to me. I tried looking around for an answer but couldn’t really figure it out. When I click it, it should be updating the location of the actor this blueprint is attached to, right?

To be honest I’m not exactly sure how get player controller works, as I have no “player”, but rather just a camera the player can observe from.

I’m not actually doing a tutorial, just trying to hash things out via google and exploration. As I said, not really sure what the controller is, as all I have is this cube, another cube made into a floor, and a camera to look down. Here’s the perspective with the object list on the right. Disabling physics didn’t change anything, sadly.

  • Is physics enabled on your cube? Moving the cube via set location doesn’t work for me when physics is turned on.
  • Is your controller the object that’s actually moving? If you’re in a tutorial, it probably is, but sometimes the controller stays still while just the pawn moves. You can check by printing out the location that you’re trying to use and make sure it’s actually changing.

Oh, I see. You’re at the very, very beginning.

A player controller is what handles input from a human and then based off that input runs your code (or blueprints) to do…whatever you tell it to.

If you don’t create your player controller, a default one will be created for you. I’ve never attempted to pass input directly to an actor as you appear to be trying to do.

My suggestion would be to search for a tutorial that is somewhat related to the genre of project you want to work on, and follow that along and learn a bit more.

It took me several weeks of tutorials and some coaching from another UE developer before I started to feel comfortable with some parts of this engine.

Good luck!