- Home /
Question by
unity_Heth7KTsNu2rrQ · Mar 24, 2019 at 10:40 AM ·
c#controllergestures
Unity: 'Controller' does not contain the definition for 'EnableGesture'
Hi all,
I'm a beginner in Unity and totally new to Leap Motion. I'm doing my project which uses Leap Motion as the input device for my game. I'm trying to use EnableGesture() for my Controller. However, it says that Unity: 'Controller' does not contain the definition for 'EnableGesture'.
Here's my code:
using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap; using Leap.Unity;
public class LeapMotionController : MonoBehaviour {
Controller controller;
// Use this for initialization
void Start () {
controller = new Controller();
controller.EnableGesture(Gesture.GestureType.TYPESWiPE);
}
}
The class 'Gesture' also does not exits. Did I miss out anything or any package/asset is required to use this class?
Comment