# Creating a crosshair in C++

**URL:** <https://forums.unrealengine.com/t/creating-a-crosshair-in-c/438222>\
**Category:** UI\
**Tags:** hud-class, unreal-engine, Widget, question, CPP\
**Created:** [November 24, 2018, 5:39am UTC](https://forums.unrealengine.com/t/creating-a-crosshair-in-c/438222 "2018-11-24T05:39:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Agrawal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mohit\_Agrawal](https://forums.unrealengine.com/u/Mohit_Agrawal)\
**Post date:** [November 24, 2018, 5:39am UTC](https://forums.unrealengine.com/t/creating-a-crosshair-in-c/438222/1 "2018-11-24T05:39:12Z")

</div>

Hi I would like to the character to have that crosshair when the game starts. I would like to do that c++ and attach it onto the player. I am really unsure on how to proceed with this as there are multiple answers on widgets.

My primary question is  
1.\> How to create a widget using C++.  
2.\>Where will the widget sit Character Class or HUD class.  
3.\> Can i create a c++ widget class from which i can create a blueprint and assign crosshairs images at a later date and assign to the other class  
4.\> If the game is supposed to be further extended into a multiplayer, then is the behaviour set any differently and where does the widget sit(character class or hud class).
