Version: 2019.2
LanguageEnglish
  • C#

InteractionSourcePressType

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The type of button or controller feature pressed, if any.

Properties

SelectDepending on the InteractionSourceType of the interaction source, this could be a number of equivalent things: main button on a blicker, air-tap on a hand, and the trigger on a motion controller.
MenuThis button is marked with three horizontal lines, same as you would fine on an Xbox One controller.
GraspThese buttons are generally found on the side of the controller. Some hardware has more than one grasp button.
TouchpadA touchpad only counts as pressed when it's held down enough - otherwise, it's just touched, and will give a reading of the position through InteractionSourceState.touchpadPosition.
ThumbstickSimilar to the touchpad, moving the thumbstick won't count as pressing it - a press will occur when pressing down on the thumbstick enough.