// Use this for initialization void Start() { if(Application.isEditor==true) { windowName = "Unity - MyScene.unity - 2-Finished - PC, Mac & Linux Standalone*"; } else { // Running exe windowName = "HelloMultitouch"; } dllFilePath = "C:\\gwdistro\\release\\1.0\\GestureworksCore\\bindings\\dotNET\\Unity\\tutorials\\02_HelloMultitouch\\2-Finished\\Assets\\Plugins\\Gestureworks\\Core\\GestureworksCore32.dll"; gmlFilePath = "C:\\gwdistro\\release\\1.0\\GestureworksCore\\bindings\\dotNET\\Unity\\tutorials\\02_HelloMultitouch\\2-Finished\\Assets\\MyScripts\\my_gestures.gml"; Debug.Log(dllFilePath); Core = new GestureWorks(); DllLoaded = Core.LoadGestureWorksDll(dllFilePath); Debug.Log("DllLoaded: "+DllLoaded); Core.InitializeGestureWorks(Screen.width, Screen.height); GmlLoaded = Core.LoadGML(gmlFilePath); WindowLoaded = Core.RegisterWindowForTouchByName(windowName); TouchPoints = new Dictionary<int, TouchCircle>(); Debug.Log("Hello Multitouch"); Debug.Log("Is DLL Loaded: " + DllLoaded); Debug.Log("lIs GML Loaded: " + GmlLoaded.ToString()); Debug.Log("Is Window Loaded: " + WindowLoaded.ToString()); }
// Use this for initialization void Start() { if(Application.isEditor==true) { windowName = "Unity - MyScene.unity - 2-Finished - PC, Mac & Linux Standalone*"; } else { // Running exe windowName = "InteractiveBitmap"; } dllFilePath = "<absolute_path>\\Assets\\Plugins\\Gestureworks\\Core\\GestureworksCore32.dll"; gmlFilePath = "<absolute_path>\\Assets\\MyScripts\\my_gestures.gml"; Core = new GestureWorks(); DllLoaded = Core.LoadGestureWorksDll(dllFilePath); Debug.Log("DllLoaded: "+DllLoaded); Core.InitializeGestureWorks(Screen.width, Screen.height); GmlLoaded = Core.LoadGML(gmlFilePath); WindowLoaded = Core.RegisterWindowForTouchByName(windowName); TouchPoints = new Dictionary<int, TouchCircle>(); Debug.Log("Interactive Bitmap"); Debug.Log("Is DLL Loaded: " + DllLoaded); Debug.Log("lIs GML Loaded: " + GmlLoaded.ToString()); Debug.Log("Is Window Loaded: " + WindowLoaded.ToString()); GestureObjects = new List<TouchObject>(); HitManager = new HitManager(Camera.main); InitializeGestureObjects(); }