How to attach An object without a socket

Hello I am making an game and is in really early development and i want to attach a gun to my character, the thing is my character is an empty, it does not have a mesh or anything and i want to attach the gun to it just to test the gun, now i don’t know how to do it

use attachtocomponent fucntions

1 Like

Hey there @Migalto! Even with an empty actor to attach it to, you don’t require a socket. Both AttachToActor and AttachToComponent have a slot for sockets, but it’s entirely optional.

2 Likes

perfect, now if i want to attach it to a static mesh component, how should i do it? i am trying to do it but on the blueprint when i use in c++ static mesh component, i don’t find it on the editor to attach the static mesh

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.