To create a crosshair
To create a crosshair
Add a CenterContainer as a child of Player
Add a CenterContainer as a child of Player
To automatically center it in the middle
To automatically center it in the middle
Add a Control Node as a child of CenterContainer
Add a Control Node as a child of CenterContainer
This is just a base UI node we can adjust
This is just a base UI node we can adjust
Rename the Control node to Crosshair
Rename the Control node to Crosshair
Finally attach a script to the Crosshair node
Finally attach a script to the Crosshair node