Click or drag to resize

TouchRegion Class

A Touch Region is a control which is used to activate another control remotely. This allows you to specify an area of the canvas to be used to activate the control.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Rewired.ComponentControlsComponentControl
            Rewired.ComponentControlsCustomControllerControl
              Rewired.ComponentControlsTouchControl
                Rewired.ComponentControlsTouchInteractable
                  Rewired.ComponentControlsTouchRegion

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 TouchRegion : TouchInteractable

The TouchRegion type exposes the following members.

Properties
 NameDescription
Public propertyallowedMouseButtons The mouse buttons that are allowed to interact with this control.
(Inherited from TouchInteractable)
Public propertyanimation
(Inherited from Component)
Obsolete
Public propertyanimator Gets the Animator component on this GameObject. Returns null if no Animator component is found.
(Inherited from TouchInteractable)
Public propertyaudio
(Inherited from Component)
Obsolete
Public propertycamera
(Inherited from Component)
Obsolete
Public propertycollider
(Inherited from Component)
Obsolete
Public propertycollider2D
(Inherited from Component)
Obsolete
Public propertyconstantForce
(Inherited from Component)
Obsolete
Public propertyenabled
(Inherited from Behaviour)
Public propertygameObject
(Inherited from Component)
Public propertyguiElement
(Inherited from Component)
Obsolete
Public propertyguiText
(Inherited from Component)
Obsolete
Public propertyguiTexture
(Inherited from Component)
Obsolete
Public propertyhideAtRuntime If enabled, the Touch Region 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
(Inherited from Component)
Obsolete
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 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
(Inherited from Component)
Obsolete
Public propertyname
(Inherited from Object)
Public propertynetworkView
(Inherited from Component)
Obsolete
Public propertyparticleSystem
(Inherited from Component)
Obsolete
Public propertyrenderer
(Inherited from Component)
Obsolete
Public propertyrigidbody
(Inherited from Component)
Obsolete
Public propertyrigidbody2D
(Inherited from Component)
Obsolete
Public propertyrunInEditMode
(Inherited from MonoBehaviour)
Public propertytag
(Inherited from Component)
Public propertytargetGraphic The target Graphic component for interaction state transitions.
(Inherited from TouchInteractable)
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 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(String)
(Inherited from Component)
Public methodGetComponent(Type)
(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(IEnumerator)
(Inherited from MonoBehaviour)
Public methodStartCoroutine(String)
(Inherited from MonoBehaviour)
Public methodStartCoroutine(String, Object)
(Inherited from MonoBehaviour)
Public methodStartCoroutine_Auto
(Inherited from MonoBehaviour)
Obsolete
Public methodStopAllCoroutines
(Inherited from MonoBehaviour)
Public methodStopCoroutine(Coroutine)
(Inherited from MonoBehaviour)
Public methodStopCoroutine(IEnumerator)
(Inherited from MonoBehaviour)
Public methodStopCoroutine(String)
(Inherited from MonoBehaviour)
Public methodToString
(Inherited from Object)
Top
Events
 NameDescription
Public eventBeginDragEvent 
Public eventDragEvent 
Public eventEndDragEvent 
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 eventPointerDownEvent 
Public eventPointerEnterEvent 
Public eventPointerExitEvent 
Public eventPointerUpEvent 
Public eventVisibilityChangedEvent Event sent when visibility changes.
(Inherited from TouchInteractable)
Top
See Also