Is it possible to use the TouchScript library to drag (pan) the camera around?
I have been able to successfully pan/drag around a GameObject (cylinder) but no luck getting the main camera to move?
Any suggestions on what TouchScript layers I should use (Fullscreen, Camera, Camera 2d), which GameObject I should I apply the Pan script to and etc. would be extremely helpful. How have you been able to control camera movement using TouchScript?
Here’s my setup but its not moving the camera:
MainCamera GameObject has CameraLayer, PanGesture, Transformer2D and BoxCollider components/scripts. Note the camera also has the default camera components.
TouchScript GameObject has MobileInput & MouseInput scripts
This question a couple years ago and there are some decent examples that come with the TouchScript asset these days, but I will answer this just in case.
Yes, it is indeed possible to use TouchScript to pan the camera. In the simplest 2D scenario, you add a Main Camera with the following components: