only show GUI.Button when touched at object on augmented reality

#based on the title above…

in my scene there is an object with other functions (Raycasting works on this)…

what i want to do is…

when i touched exactly at the object, GUI BUTTONS appear…

and when i touch anywhere outside of the object… it hides the GUI BUTTONS…

ive tried Raycasting on the object, where i it has the same effect on the other functions…

but if failed…

so is there any other way where i only touch the object for a moment… and some buttons appear out of nowhere…

and when i touch besides the object the buttons mysteriously disappears…??

heres the code where it works on the keyboard…

function OnGUI  () {
	if(GUI.Button (Rect (Screen.width/2 - 10, Screen.height/2 - 10, 100, 100), "Hello World!")){
	
	}
}

//this code is in an empty gameobject (myGui)

var Guiscript : myGui;

function Start(){

Guiscript.enabled = false;

}

function Update () {
	
	if(Input.GetKeyDown ("space")){
	        if (Guiscript.enabled == true){
	        Guiscript.enabled = false;
	        }
	        else {
	        Guiscript.enabled = true;
	        }
	    }
	}

so this code works on the keyboard… im having problems to change it to a touch… as what i explained before…

thank you…
your patience and your help is and honor…

Hi!
Seems like you have the logic worked out, only need to get the raycast to work properly.

Make sure you have a collider on the object you want to raycast against, and check out the docs for all possible settings you can have for the raycast call.