Click or drag to resize

FingersJoystickScript Fields

The FingersJoystickScript type exposes the following members.

Fields
  NameDescription
Public fieldAddUpToOne
Whether the x and y absolute values should add up to 1. If false, both can be 1 at a full diagonal.
Public fieldCrossPlatformInputHorizontalAxisName
Horizontal input axis name if cross platform input integration is desired.
Public fieldCrossPlatformInputVerticalAxisName
Vertical input axis name if cross platform input integration is desired.
Public fieldEightAxisMode
In eight axis mode, the joystick can only move up, down, left, right or diagonally. No in between.
Public fieldFollowSpeed
The speed at which the joystick moves with the finger if it is dragged beyond the edge. 0 for no follow.
Public fieldJoystickBackground
The background image of the joystick
Public fieldJoystickCallback
Fires when joystick changes
Public fieldJoystickExecuted
Fires when the joystick moves
Public fieldJoystickImage
The image to move around like a joystick
Public fieldJoystickPower
Reduces the amount the joystick moves the closer it is to the center. As the joystick moves to it's max extents, the movement amount approaches 1. For example, a power of 1 would be a linear equation, 2 would be squared, 3 cubed, etc.
Public fieldMaxRangeRadiusMultiplier
Reduce the max range of the joystick based on radius of the joystick
Public fieldMoveJoystickToGestureStartLocation
Whether to move the joystick when the pan gesture starts.
Top
See Also