Newbie Question - How do I attach two objects together in VR in level blueprints?

Hi,

How to I go about attaching these two pieces together in level Blueprints?

I’m an absolute newbie to blueprints and if there is a way to do this on level blueprints it would be highly appreciated to know how?

Thanks All,

Mitchel

Hi NotoriousMGT,

I wouldn’t recommend doing this in level blueprints. I would suggest creating a Blueprint Actor and adding both static meshes to it. This will also allow you to pick it up and interact with it in the world later on when you’ll want to shoot it.

https://docs.unrealengine.com/en-us/Engine/Blueprints/UserGuide/Types/ClassBlueprint/Creation

Hope this helps,
B

I’ll just add that you should consider reading up on components and sockets as this is a vital topic. There is a node specifically designed to do what you need:

https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/89813-attach-actor-to-component-deprecated

And, as mentioned above, this is not something you’d normally do in the Level Blueprint.

Thank you for your responses, I find myself to be in quite a last-minute spot which is the only reason I’m asking for this to be done in Level Blueprints (If it’s possible, which it is from what I have been told).

Is there a quick and simple way to just allow objects to attach to each other by using the Level Blueprints at all? I have looked into these other methods before but use to such time constraint I am struggling to learn their purposes. though what I am doing doesn’t really need to be entirely clean at this point in time.

Thank you for your quick responses again,

Mitchel :slight_smile:

Use attach component node and snap to target.

Is there a quick and simple way to
just allow objects to attach to each
other by using the Level Blueprints at
all?

It sounds like homework you forgot to do on time. :slight_smile: But sure there is:

Image from Gyazo

Disabled Pawn collision on the cubes for obvious reasons.

@Everynone
Yeah Kinda aha :stuck_out_tongue_winking_eye: That is a great example though, thank you for showing me that, I think I have a better idea on how to go about it now :slight_smile: I appreciate it! :smiley:

Thanks! :smiley: