JoystickController Class

Definition

Example script to demonstrate joystick control in sample scene

C++
public ref class JoystickController : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
JoystickController

Constructors

Fields

Properties

Methods

JoystickModeMove()

Set the joystick mode from a UI button.

JoystickModeRotate()

Set the joystick mode from a UI button.

JoystickModeScale()

Set the joystick mode from a UI button.

StartDrag()

The ObjectManipulator script uses this to determine when the joystick is grabbed.

StopDrag()

The ObjectManipulator script uses this to determine when the joystick is released.

Applies to

Produto Versións
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0