// Use this for initialization void Start() { rend = GetComponent<Renderer> (); tex = new Texture2D (1,1,TextureFormat.RGBAFloat,false); rend.material.mainTexture = tex; TactonicDeviceList dl = Tactonic.GetDeviceList (); if (dl.GetNumDevices () > id) { device = dl.GetDevice (id); Debug.Log ("id: " + id + ", serial number: " + device.serialNumber); frame = new TactonicFrame (device); Tactonic.AddFrameCallback (device, this); Tactonic.StartDevice (device); newFrame = false; tex.Resize (device.GetRows (), device.GetCols ()); Debug.Log ("rows: " + device.GetRows() + ", cols: " + device.GetCols()); } else { Debug.Log ("id " + id + " not found! " + dl.GetNumDevices () + " devices found."); } }