I PUT THIS VIDEO TO SHOW THE GUI.BUTTON PROBLEM THAT I HAVING WITH THE UNITY VUFORIA AR PROJECT. HERE THE LINK.http://www.youtube.com/watch?v=Hl6qL...ature=youtu.beI have a GUItexture button. and a 3d object that appear and desapear over the image TRACK, with the touch of the GUItexture button in the screen. The problem is that when im not over the image TRACK, if i touch the GUItexturebutton, the object appear in the scene and it supouse to do not appear, to work only with the image TRACK.here is the code. How can i fix that code in order to work just with the imageTRACK.__________________________________________________ _______var myObject : GameObject;function Start(){ myObject = GameObject.Find("teapot"); }function Update () { if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began){ if (guiTexture.HitTest(Input.GetTouch(0).position)){ myObject.renderer.enabled = !myObject.renderer.enabled; } } }
"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team
touch_GUITexture_button problem Help
By gringofx
on Wed, 11/14/2012 - 16:36