InControl API Reference
TouchManager Class Reference
Inheritance diagram for TouchManager:
SingletonMonoBehavior< TouchManager >

Public Types

enum class  GizmoShowOption { Never , WhenSelected , UnlessPlaying , Always }
 

Static Public Member Functions

static Touch GetTouch (int touchIndex)
 
static Touch GetTouchByFingerId (int fingerId)
 
static Vector3 ScreenToWorldPoint (Vector2 point)
 
static Vector3 ViewToWorldPoint (Vector2 point)
 
static Vector3 ScreenToViewPoint (Vector2 point)
 
static float ConvertToWorld (float value, TouchUnitType unitType)
 
static Rect PercentToWorldRect (Rect rect)
 
static Rect PixelToWorldRect (Rect rect)
 
static Rect ConvertToWorld (Rect rect, TouchUnitType unitType)
 
static implicit operator bool (TouchManager instance)
 

Public Attributes

Camera touchCamera
 
GizmoShowOption controlsShowGizmos = GizmoShowOption.Always
 
bool enableControlsOnTouch = false
 
int controlsLayer = 5
 

Properties

bool controlsEnabled [get, set]
 
static ReadOnlyCollection< TouchTouches [get]
 
static int TouchCount [get]
 
static Camera Camera [get]
 
static InputDevice Device [get]
 
static Vector3 ViewSize [get]
 
static float PercentToWorld [get]
 
static float HalfPercentToWorld [get]
 
static float PixelToWorld [get]
 
static float HalfPixelToWorld [get]
 
static Vector2 ScreenSize [get]
 
static Vector2 HalfScreenSize [get]
 
static GizmoShowOption ControlsShowGizmos [get]
 
static bool ControlsEnabled [get, set]
 
- Properties inherited from SingletonMonoBehavior< TouchManager >
static TComponent Instance [get]
 
bool EnforceSingleton [get]
 Returns true if the object is NOT the singleton instance and should exit early from doing any redundant work. It will also log a warning if called from another instance in the editor during play mode. More...
 
bool IsTheSingleton [get]
 Returns true if the object is the singleton instance. More...
 
bool IsNotTheSingleton [get]
 Returns true if the object is not the singleton instance. More...
 

Events

static Action OnSetup
 

Additional Inherited Members

- Protected Member Functions inherited from SingletonMonoBehavior< TouchManager >
virtual void Awake ()
 
virtual void OnDestroy ()
 

The documentation for this class was generated from the following file: