How to position a gun in hands. (FPS starter code)

Hi guys

Probably a noob question, but I am trying to simply replace the gun in the FPS demo, and I am unable to orient the gun correctly. The C++ code does an ‘AttachToComponent’ in BeginPlay, so any orientation in the editor is of no use. I tried changing the orientation of the root bone in the gun’s skeletal mesh, but for some reason it does not get saved. Each time I open it, I see the same old orientation.

I tried chainging the position and orientation of the socket as well, but that seems to be making no difference at all

I took a screenshot to make it clear. Please take a look

Thanks in advance!