Main Crosshair

This is a standard sight that will be displayed by default.

Preset

In the Preset, the type of sight is selected from the default there can be 2:

  1. Gun - a sight for machine guns, pistols.

  2. Shotgun - a sight for shotguns.

Next, based on the script that we have selected: IMGUI / UI Elements:

  1. IMGUI - you need to create the sight strips.

  2. UI Elements - you need to choose ready-made strips for the sight.

In Hide State, the state in which the sight will be hidden is selected.

States

Here you can adjust the size of the sight and the speed of increasing its size depending on the state of the player.

In State, the player's state is selected, they can be combined. For example, Idle + Crouched

Next, the size of the sight in the Spread field and the speed of transition to this state of the sight from other states.

Fire Settings

In Component, the component responsible for firing the weapon is selected, and in Event, the function responsible for the shot is selected.

Next, the Arg field indicates the size of the sight and the speed of its increase when shooting.

Last updated