1. Home
  2. Docs
  3. Crosshair Assembler (Unity)
  4. Getting Started: Setup Crosshair Assembler
  5. Enable Crosshairs Assembler in Your Scene

Enable Crosshairs Assembler in Your Scene

Two Simple Steps

Enabling Crosshair Assembler in your scene can be done by two simple steps:

  • Create a crosshair canvas
  • Setup crosshair controller to the crosshair canvas

 

Create a Crosshair Canvas (and put the right name to it!)

Create a canvas in the Hierarchy. (Right-click on the Hierarchy and UI – Canvas)

 

Rename the canvas to “CrosshairCanvas”. (The crosshair controller can realize the canvas by the name)

 

Setup crosshair controller to the crosshair canvas

Add component “CrosshairController” into the CrosshairCanvas. (Click the CrosshairCanvas and Click “Add Component” button on the Inspector)

 

Set the size of the crosshair list in the Crosshair Controller. And then drag any crosshair into the element.

 

Play the game. you can see the crosshair you added. (If you added multiple crosshairs in the list, press C key to change it to the next crosshair and press Z for the previous.)

Was this article helpful to you? Yes No

How can we help?