How to attach a weapon to player?

How do I attach a weapon to a player. Except this time my player doesn’t have a player model it’s just a camera. I wanted to make a doom style way of weapons where as it’s not a 3D model but sprites.

Hey, since there is no layer between the real 3D world and the viewport, you will need to add the Weapon through UMG or the Canvas (recommend UMG).

Not understanding.

I haven’t done that yet, but you either have a real sprite that you put in front of the camera, or you make a Widget that contains your weapon material. There is no draw layer in between. So either adjust the sprite in front of the camera or add it as a UMG Widget to the HUD/UI.

You will find tutorials on UMG etc with google (:

Easy way to do this imo is just make an mask/opacity (invisible) material set it on your mesh. Then add your socket and weapon to that mesh.

You need use the HUD, in the HUD class add a material to print, and in that material is the sprite of the weapon (the texture) you need adjust the location in the screen and that is all (X = X/2 - SpriteSize/2 & Y = Y - SpriteSize/2) with that you can put the sprite more or less where you need.