- Home /
Show/Hide many gameobjects upon button click
I'm trying to develop an augmented reality application using Vuforia
. I have to show specific Gameobject
for an Image Target , say cube for Image Target
1 and Rectangle for Image target
2 , triangle for target
3 and so on for 10 targets. Both the targets will be tracked simultaneously . All i want to do is show cube first and when button is clicked it should hide the rectangle . and Again when button is clicked , it should show triangle hiding both cube and rectangle . All these with a single button and on multiple clicks . All i know is things are to be changed at Defaukttrackableeventhandler.cs
script .
Also for a single image target , show one , hide two three . Button click - Show two , hide one and three . Button click show three , hide one and two ..
Whats i'm doing right now is each scene has a image target and a button for each scene
, so when button is clicked , load next scene
. I know this is not the right way to do . I'm new and i'm learning.