I have a 3D model of a gun but this gun came with different parts. But to add this static mesh I need to reference a single mesh so how I do that while I have several parts ?
TL/DR:
This looks like not animated asset, get it into 3d app like blender and animate there. Can be done in unreal and trough blueprints, but its more work. Or get already animated weapon asset from marketplace.
Longer explanation:
Find base mesh, see if it has sockets, snap to sockets.
Or
Create Blueprint, add all those meshes there, use hierarchy tree (to the left where all components are shown in tree) to add them all on top of one another.
However it all kind of depends on how that asset was done. Also they all seem to be static meshes, so for animation like replacing ammo etc, you need either animate it all yourself, or make it trough code in blueprints.
What gun it is? there may be much better (animated guns) on unreal marketplace. Sometimes some guns are for free, or quite cheap. So either spend time working on this gun or spend some $$$ in marketplace.
Thanks. It is ordinary machine gun just for testing and learning however I was hoping that Unreal has a way to merge these parts together. For animation I just want to use the sequencer for making the gun move a little when firing
I am sure there are one piece 3d guns but wanted to solve this problem for learning
Yes it has, multiple ways, but you need animated gun. Which is not that easy.
For unanimated just to learn, place them all as components, ddecide which one is base/root, place rest on top of that root static mesh component.
Will do that . Now all the pieces are in single blueprint