Click or drag to resize

FingersDPadScript Fields

The FingersDPadScript type exposes the following members.

Fields
  NameDescription
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 fieldDPadBackgroundImage
The background image to use for the DPad. This should contain up, right, down, left and center in unselected state.
Public fieldDPadCenterImageSelected
The center image to use for the DPad for selected state. Alpha pixel of less than MinAlphaForTouch will not be selectable.
Public fieldDPadDownImageSelected
The down image to use for the DPad for selected state. Alpha pixel of less than MinAlphaForTouch will not be selectable.
Public fieldDPadItemPanned
Fires when a dpad item is panned on
Public fieldDPadItemTapped
Fires when a dpad item is tapped
Public fieldDPadLeftImageSelected
The left image to use for the DPad for selected state. Alpha pixel of less than MinAlphaForTouch will not be selectable.
Public fieldDPadRightImageSelected
The right image to use for the DPad for selected state. Alpha pixel of less than MinAlphaForTouch will not be selectable.
Public fieldDPadUpImageSelected
The up image to use for the DPad for selected state. Alpha pixel of less than MinAlphaForTouch will not be selectable.
Public fieldTouchRadiusInUnits
Touch radius in units (usually inches). Set to lowest for single pixel accuracy, or larger if you want more than one dpad button interactable at once. You'll need to test this to make sure the DPad works how you expect for an average finger size and your screen size.
Top
See Also