Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

InteractionSourceState.pressed

public bool pressed;

Description

True if the source is in the pressed state.

This can be because the hand has a finger pressed or the controller has its primary button pressed.