Parenting a sprite to a camera?

Hey guys,

So I currently just started a 16 bit retro first person shooter game with the Unreal engine. I am pretty new to the engine, however I have learned what I need to know to create what I am going for. I have one problem that I can’t seem to find the answer to though. That is, how do you take an FPS gun sprite and parent it to the camera like you would a skeletal mesh? Thanks for listening.

Hi Metallic,

You should be able to do what you want easily.
I can think of two main ways to do it.

  1. Add the sprite as a component to the Character Blueprint (e.g. apply it as a texture to a plane and position it correctly).
  2. Add it as a Widget to your custom HUD class.

Depending on what you want to do each option will give you different capabilities.
If I am understanding you correctly the Widget option should be enough.

Feel free to ask if you have any other questions.

Hope this helps.

Thanks so much! It worked perfectly. Only issue I have now is getting it to play my firing animation when a button is pressed. Any advice on that? Would I have to start with the Paper 2D Flipbook?

I believe so yes however I have not made one myself all I know is the theory behind them.

Alright, well thanks a lot for the help, I really appreciate it. You have given me more than a head start none the less. I just have to look up some tutorials and then ill hopefully be able to do what i need to do. Thanks again for the knowledge.