Table of Contents

Class CrosshairController

Namespace
Interaction

The CrosshairController activates/deactivates the crosshair which is positioned in the middle of the screen. This can e.g. happen when an object is grabbed or an overlay is active.

public class CrosshairController : MonoBehaviour
Inheritance
object
CrosshairController

Fields

contextButtonsAreActive

Changes depending if the contextButtons are active.

public bool contextButtonsAreActive

Field Value

bool

True if contextButtons are active.

Methods

ActivateContextButtons()

Activates the context buttons.

public void ActivateContextButtons()

ActivateCrosshair()

Activate the crosshair.

public void ActivateCrosshair()

DeactivateContextButtons()

Deactivates the context buttons.

public void DeactivateContextButtons()

DeactivateCrosshair()

Deactivates the crosshair.

public void DeactivateCrosshair()