FAQ
Pages 28
- Home
- Architectural Decisions
- Code Conventions
- Examples
- FAQ
- Gestures
- How to Contribute
- Input Sources
- Layers
- Main Ideas Behind TouchScript
- Modifying Hits
- MouseInput
- Packages
- Remapping Coordinates From an Input Source
- Scaleform
- Testing multitouch on a PC
- The Journey of a Touch Point
- TouchManager
- TUIOInput
- Tutorial. Dragging 3D Objects Around.
- Tutorial. Friendly Gestures.
- Tutorial. Tap Gesture (JS).
- Tutorial. Tap Gesture.
- Tutorial. Writing a Custom Gesture.
- Tutorials
- Upgrading
- Versions
- Windows Inputs
- Show 13 more pages…
Clone this wiki locally
1. Something doesn't work
1. I'm getting this error all the time: No camera layers. Adding one for the main camera.
This is not an error. It's just a warning that you don't have any camera layers in the scene and one was created automatically.
2. TUIO/Windows 7/iOS (multi)touch doesn't work.
Make sure that you have an appropriate input source in the scene. To receive mouse and touch input you need to have a StandardInput in your scene. To receive TUIO messages you need TUIOInput. Note that Windows touch is not supported in the Editor.
2. Touch input
1. Is it possible to test multitouch gestures without a multitouch device?
Yes, you can use StandardInput for that. Just press ALT and click anywhere to generate a fake touch which will be active and stationary while ALT is pressed.
2. Does TouchScript work with GUI.Button?
The short answer is "sort of". Default touch layers (i.e. CameraLayer and CameraLayer2D) work with objects which have colliders on them. GUI is not a part of 3d scene and GUI objects don't have colliders. But it is possible to implement a custom touch layer with all the functionality needed for GUI buttons.
3. Working with gestures
1. How do I make gestures work together?
For gestures to be recognized simultaneously you need to put one into another one's Friendly Gestures list in inspector or call gesture1.AddFriendlyGesture(gesture2); from a script.
Otherwise the gesture to begin first takes all the touch points.