JoystickController Class

Definition

Example script to demonstrate joystick control in sample scene

public ref class JoystickController : UnityEngine::MonoBehaviour
public class JoystickController : UnityEngine.MonoBehaviour
type JoystickController = class
    inherit MonoBehaviour
Public Class JoystickController
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
JoystickController

Constructors

JoystickController()

Fields

MoveSpeed
ReboundSpeed
RotationSpeed
ScaleSpeed
SensitivityForwardBack
SensitivityLeftRight

Properties

Mode
TargetObject

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