FingersScript Fields |
The FingersScript type exposes the following members.
Name | Description | |
---|---|---|
![]() | AutoAddRequiredComponents | Whether to auto-add required components like physics raycasters, event system, etc. if they are missing. |
![]() | DefaultDPI | The default DPI to use if the DPI cannot be determined |
![]() | EnableMultiTouch | Whether to enable Unity input multi-touch automatically. |
![]() | LevelUnloadOption | Allows resetting state (keeps the gestures, just resets them) or clearing all gestures when a level is unloaded. |
![]() | MouseDistanceInUnitsForScaleAndRotate | The distance (in units, default is inches) for simulated fingers to start at for a mouse zoom or rotate. |
![]() | MouseWheelDeltaMultiplier | Mouse wheel delta multiplier. |
![]() | PassThroughObjects | Objects that should pass gestures through. By default, some UI components block gestures, such as Panel, Button, Dropdown, etc. See the SetupDefaultPassThroughComponents method for the full list of defaults. |
![]() | ProcessUnityTouches | Whether to process Unity touch events. If false, you will need to implement the VirtualTouch* methods to implement touch handling. |
![]() | RequireControlKeyForMouseZoom | Whether the control key is required for mouse zoom. If true, control pluse mouse wheel zooms. If false, mouse wheel alone will zoom. |
![]() | ShowTouches | Whether to show touches using the TouchCircles array. Make sure to turn this off before releasing your game or app. |
![]() | SimulateMouseWithTouches | Whether to treat touches as mouse pointer? This needs to be set before the script Awake method is called. |
![]() | TouchCircles | If ShowTouches is true, this array is used to show the touches. The FingersScriptPrefab sets this up as 10 circles. |
![]() | TreatMousePointerAsFinger | True to treat the mouse as a finger, false otherwise. Left, middle and right mouse buttons can be used as individual fingers and will all have the same location. |
![]() | TreatMouseWheelAsFingers | True to treat the mouse wheel as two fingers for rotation and scaling, false otherwise. |