LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

BaseInput.GetMouseButton

public bool GetMouseButton(int button);

Description

Interface to Input.GetMouseButton. Can be overridden to provide custom input instead of using the Input class.