Click or drag to resize

TouchPad Class

A touch pad control.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Rewired.ComponentControlsComponentControl
            Rewired.ComponentControlsCustomControllerControl
              Rewired.ComponentControlsTouchControl
                Rewired.ComponentControlsTouchInteractable
                  Rewired.ComponentControlsTouchPad

Namespace:  Rewired.ComponentControls
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
[SerializableAttribute]
public sealed class TouchPad : TouchInteractable, 
	IPointerDownHandler, IEventSystemHandler, IPointerUpHandler

The TouchPad type exposes the following members.

Properties
  NameDescription
Public propertyactivateOnSwipeIn
If true, the touch pad can be activated by a touch swipe that began in an area outside the touch pad region. If false, the touch pad can only be activated by a direct touch.
Public propertyallowedMouseButtons
The mouse buttons that are allowed to interact with this control.
(Inherited from TouchInteractable.)
Public propertyallowPress
Should presses (continual press like a button) on the touch pad be processed?
Public propertyallowTap
Should taps on the touch pad be processed?
Public propertyanimation Obsolete. (Inherited from Component.)
Public propertyanimator
Gets the Animator component on this GameObject. Returns null if no Animator component is found.
(Inherited from TouchInteractable.)
Public propertyaudio Obsolete. (Inherited from Component.)
Public propertyaxesToUse
The axis directions in which movement is allowed. You can restrict movement to one or both axes.
Public propertyaxis2DCalibration
The calibration settings for the 2D axis.
Public propertycamera Obsolete. (Inherited from Component.)
Public propertycollider Obsolete. (Inherited from Component.)
Public propertycollider2D Obsolete. (Inherited from Component.)
Public propertyconstantForce Obsolete. (Inherited from Component.)
Public propertyenabled (Inherited from Behaviour.)
Public propertygameObject (Inherited from Component.)
Public propertyguiElement Obsolete. (Inherited from Component.)
Public propertyguiText Obsolete. (Inherited from Component.)
Public propertyguiTexture Obsolete. (Inherited from Component.)
Public propertyhasPointer
Is this control currently being controlled by a touch or pointer?
Public propertyhideAtRuntime
If enabled, the control will be hidden when gameplay starts.
Public propertyhideFlags (Inherited from Object.)
Public propertyhideWhenIdle
Sets visibility to False when the control is idle. When the control is no longer idle, visibility will be set to True again.
(Inherited from TouchInteractable.)
Public propertyhingeJoint Obsolete. (Inherited from Component.)
Public propertyhorizontalAxisCalibration
The calibration settings for the horizontal axis.
Public propertyhorizontalAxisCustomControllerElement
The Custom Controller element that will receive input values from the touch pad's X axis.
Public propertyimage
Gets the Target Graphic as an Image. If the Target Graphic is not an Image, this will return null.
(Inherited from TouchInteractable.)
Public propertyinertiaFriction
Determines how quickly a swipe value will fall toward zero when useInertia is True.
Public propertyinteractable
Can the control can be interacted with by the user?
(Inherited from TouchInteractable.)
Public propertyinteractionState
The current interaction state.
(Inherited from TouchInteractable.)
Public propertyisActiveAndEnabled (Inherited from Behaviour.)
Public propertylight Obsolete. (Inherited from Component.)
Public propertyname (Inherited from Object.)
Public propertynetworkView Obsolete. (Inherited from Component.)
Public propertyparticleSystem Obsolete. (Inherited from Component.)
Public propertypointerId
The pointer id that currently has control of this control. If there is no pointer id, the value is TouchControl.POINTER_ID_NULL. Only one pointer id (touch, mouse, etc.) may be in control of this button at any time.
Public propertypressCustomControllerElement
The Custom Controller element that will receive input values from touch pad presses.
Public propertypressDistanceLimit
The maximum movement distance allowed in pixels since the touch began for the touch to be considered a press. Any movement beyond this value will cancel the press. [-1 = no limit]
Public propertypressStartDelay
Time the touch pad must be touched before it will be considered a press.
Public propertyrenderer Obsolete. (Inherited from Component.)
Public propertyrigidbody Obsolete. (Inherited from Component.)
Public propertyrigidbody2D Obsolete. (Inherited from Component.)
Public propertyrunInEditMode (Inherited from MonoBehaviour.)
Public propertystayActiveOnSwipeOut
If true, the touch pad will stay engaged even if the touch that activated it moves outside the touch pad region. If false, the touch pad will be released once the touch that activated it moves outside the touch pad region.
Public propertytag (Inherited from Component.)
Public propertytapCustomControllerElement
The Custom Controller element that will receive input values from touch pad taps.
Public propertytapDistanceLimit
The maximum movement distance allowed in pixels since the touch began for the touch to be considered a tap. [-1 = no limit]
Public propertytapTimeout
The maximum touch duration allowed for the touch to be considered a tap.
Public propertytargetGraphic
The target Graphic component for interaction state transitions.
(Inherited from TouchInteractable.)
Public propertytouchPadMode
The mode of the touch pad.
Public propertytouchPosition
The current position of the touch.
Public propertytouchStartPosition
The position of the initial touch.
Public propertytransform (Inherited from Component.)
Public propertytransitionAnimationTriggers
Settings using for Animation Trigger transitions.
(Inherited from TouchInteractable.)
Public propertytransitionColorTint
Settings using for Color Tins transitions.
(Inherited from TouchInteractable.)
Public propertytransitionSpriteState
Settings using for Sprite State transitions.
(Inherited from TouchInteractable.)
Public propertytransitionType
The transition type(s) to be used when transitioning to various states. Multiple transition types can be used simultaneously. Denote multiple transition types using bitwise operations.
(Inherited from TouchInteractable.)
Public propertyuseGUILayout (Inherited from MonoBehaviour.)
Public propertyuseInertia
If enabled, when swiped and released, the value will slowly fall toward zero based on the Friction value. This only has an effect if touchPadMode is set to TouchPadMode.PositionDelta.
Public propertyvalueFormat
The format of the resulting data generated by the touch pad.
Public propertyverticalAxisCalibration
The calibration settings for the vertical axis.
Public propertyverticalAxisCustomControllerElement
The Custom Controller element that will receive input values from the touch pad's Y axis.
Public propertyvisible
Is the control visible? An invisible control can still be interacted with. This property only has any effect when used with an Image Component.
(Inherited from TouchInteractable.)
Top
Methods
  NameDescription
Public methodBroadcastMessage(String) (Inherited from Component.)
Public methodBroadcastMessage(String, Object) (Inherited from Component.)
Public methodBroadcastMessage(String, SendMessageOptions) (Inherited from Component.)
Public methodBroadcastMessage(String, Object, SendMessageOptions) (Inherited from Component.)
Public methodCancelInvoke (Inherited from MonoBehaviour.)
Public methodCancelInvoke(String) (Inherited from MonoBehaviour.)
Public methodClearValue (Overrides ComponentControlClearValue.)
Public methodCompareTag (Inherited from Component.)
Public methodEquals (Inherited from Object.)
Public methodGetComponent(Type) (Inherited from Component.)
Public methodGetComponent(String) (Inherited from Component.)
Public methodGetComponent``1 (Inherited from Component.)
Public methodGetComponentInChildren(Type) (Inherited from Component.)
Public methodGetComponentInChildren(Type, Boolean) (Inherited from Component.)
Public methodGetComponentInChildren``1 (Inherited from Component.)
Public methodGetComponentInChildren``1(Boolean) (Inherited from Component.)
Public methodGetComponentInParent(Type) (Inherited from Component.)
Public methodGetComponentInParent``1 (Inherited from Component.)
Public methodGetComponents(Type) (Inherited from Component.)
Public methodGetComponents(Type, ListComponent) (Inherited from Component.)
Public methodGetComponents``1 (Inherited from Component.)
Public methodGetComponents``1(ListUMP) (Inherited from Component.)
Public methodGetComponentsInChildren(Type) (Inherited from Component.)
Public methodGetComponentsInChildren(Type, Boolean) (Inherited from Component.)
Public methodGetComponentsInChildren``1 (Inherited from Component.)
Public methodGetComponentsInChildren``1(Boolean) (Inherited from Component.)
Public methodGetComponentsInChildren``1(ListUMP) (Inherited from Component.)
Public methodGetComponentsInChildren``1(Boolean, ListUMP) (Inherited from Component.)
Public methodGetComponentsInParent(Type) (Inherited from Component.)
Public methodGetComponentsInParent(Type, Boolean) (Inherited from Component.)
Public methodGetComponentsInParent``1 (Inherited from Component.)
Public methodGetComponentsInParent``1(Boolean) (Inherited from Component.)
Public methodGetComponentsInParent``1(Boolean, ListUMP) (Inherited from Component.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInstanceID (Inherited from Object.)
Public methodInvoke (Inherited from MonoBehaviour.)
Public methodInvokeRepeating (Inherited from MonoBehaviour.)
Public methodIsInteractable (Inherited from TouchInteractable.)
Public methodIsInvoking (Inherited from MonoBehaviour.)
Public methodIsInvoking(String) (Inherited from MonoBehaviour.)
Public methodSendMessage(String) (Inherited from Component.)
Public methodSendMessage(String, Object) (Inherited from Component.)
Public methodSendMessage(String, SendMessageOptions) (Inherited from Component.)
Public methodSendMessage(String, Object, SendMessageOptions) (Inherited from Component.)
Public methodSendMessageUpwards(String) (Inherited from Component.)
Public methodSendMessageUpwards(String, Object) (Inherited from Component.)
Public methodSendMessageUpwards(String, SendMessageOptions) (Inherited from Component.)
Public methodSendMessageUpwards(String, Object, SendMessageOptions) (Inherited from Component.)
Public methodStartCoroutine(String) (Inherited from MonoBehaviour.)
Public methodStartCoroutine(IEnumerator) (Inherited from MonoBehaviour.)
Public methodStartCoroutine(String, Object) (Inherited from MonoBehaviour.)
Public methodStartCoroutine_Auto Obsolete. (Inherited from MonoBehaviour.)
Public methodStopAllCoroutines (Inherited from MonoBehaviour.)
Public methodStopCoroutine(IEnumerator) (Inherited from MonoBehaviour.)
Public methodStopCoroutine(Coroutine) (Inherited from MonoBehaviour.)
Public methodStopCoroutine(String) (Inherited from MonoBehaviour.)
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventInteractionStateChangedToDisabled
Event sent when interaction state changes to Disabled.
(Inherited from TouchInteractable.)
Public eventInteractionStateChangedToHighlighted
Event sent when interaction state changes to Highlighted.
(Inherited from TouchInteractable.)
Public eventInteractionStateChangedToNormal
Event sent when interaction state changes to Normal.
(Inherited from TouchInteractable.)
Public eventInteractionStateChangedToPressed
Event sent when interaction state changes to Pressed.
(Inherited from TouchInteractable.)
Public eventInteractionStateSetEvent
Event sent when the Interaction State changes.
(Inherited from TouchInteractable.)
Public eventPressDownEvent
Event sent when the touch pad is initally pressed. This event is for the Press button simulation which must be enabled by setting Press Allowed to True. This event will only be sent if allowPress is True.
Public eventPressUpEvent
Event sent when the touch pad is released after a press. This event is for the Press button simulation which must be enabled by setting Press Allowed to True. This event will only be sent if allowPress is True.
Public eventTapEvent
Event sent when the touch pad is tapped. This event will only be sent if allowTap is True.
Public eventValueChangedEvent
Event sent when the value changes.
Public eventVisibilityChangedEvent
Event sent when visibility changes.
(Inherited from TouchInteractable.)
Top
See Also