Attach actor to component only working on latest blueprint

Hi,

So I’m new to forums and Unreal and am not sure how this works, but I have an issue when attaching an actor to a component. I have a VR character that when its right hand overlaps an actor, is able to use the grip button to pick it up, which works exactly how I want to.

However, when I drag more than one of these blueprints into the viewport, only the most recently placed can be interacted with. Even when I create new blueprints with the same blueprints, only the most recent can be picked up.

Any help so I can pick up all objects without issues would be greatly appreciated!



image

It’s to do with how you’re setting up the cube pointer. Obviously the variable can only point at one cube :slight_smile:

The reference needs to be set as you ‘approach’ the cube. Typically, a line trace is used for that. You can have a line trace going from the hand to whatever is in front of it.

Then you can pick up the object.

EDIT: Another way would be to have a collision capsule around the hand, that would overlap with the object and give you a reference.

This sort of thing

The hand needs a collision volume on it.

Thank you! With this was able to get it working exactly how I want now

1 Like