Log in or register to post comments

Event Tracker

October 18, 2013 - 2:08pm #1

Hi All, 

I have 4 objek in my Image Target Sample:

1. Cube

2. Three kinds of GuiTexture (Image 2D)

the cube is appear when image detected and tracked

but i have a problem with  guitexture, it's allways appear on screen even camera is out of trackable image. 

could you help to solve this ?

Event Tracker

October 20, 2013 - 11:50am #4

How to use GUI textures and GUI buttons is not relevant to Vuforia, but just about Unity programming.

Have you tried searching the Unity website ?

 

Event Tracker

October 20, 2013 - 1:51am #3

Hi al, i solved my past issue with guitexture, but my solution does not work when i tried to gui.button.

//this the code inserted in DefaultTrackableEvenHandler.cs
//if tracking found
GUITexture[] guiTextureComponents = GetComponentsInChildren<GUITexture>(true);
		// Enable rendering:
		foreach (GUITexture component in guiTextureComponents)
		{
			component.enabled=true;
			
		}
//if tracking lost

GUITexture[] guiTextureComponents = GetComponentsInChildren<GUITexture>(true);
foreach (GUITexture component in guiTextureComponents)
{
component.enabled=false;
}

i want gui button also can be implement here..please tell me how..

 

thanks

Event Tracker

October 19, 2013 - 1:51am #2

SOLVED

Log in or register to post comments