Attach Object to Skeletal Mesh Socket C++
I am kind of stuck at a problem I ran into. I want to attach my Weapon Blueprint to the Character Socket.
The problem is that Unreal obviously does not find the Socket which I attached to the Skeletal Mesh in Editor.
The engine always attaches the weapon to the center of my character.
When I print the Variable on Screen in Line 5 I get the Name "SkeletalMeshSocket_0", which is obviously not the name I gave the socket but seems to me like some kind of intern name? What really bugs me is the fact, that when I build the same structure with blueprints it works perfectly and the weapon snaps to the selected socket.
So I just want to know, did I miss something in code or is this some unreal related bug?
Thanks for helping!
asked Jan 06 '16 at 02:02 PM in C++ Programming
this should work
answered Jan 06 '16 at 02:38 PM
I just use the actual name when attaching to a socket, i.e.
answered Jan 06 '16 at 02:37 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here