Swipe your hand or an object above the module and it will measure the direction of movement. Directions are based on the orientation of the device. If the power switch on the device is the bottom then a direction of LEFT is a swipe from the right side to the left side of the device.
What ports can I use it on?
3-6
Code
var swipe =Magic.modules.gesture.direction;
usingMagic;publicclassDemo:MonoBehaviour{ // create a reference to the modulepublicMagic.Modules.GestureModule gesture;voidStart() { }voidUpdate() { // access the property of the moduleMagic.Modules.GestureModule.GestureDirection swipe =gesture.direction; }}