Professional Documents
Culture Documents
Script
Script
Script
Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
//Get the original GUI item to disable on drag of the cloned item
void Update(){
if(DefaultTrackableEventHandler.lostFound == true){
child.gameObject.SetActive(true);
Debug.Log("GOT IT");
}else{
child.gameObject.SetActive(false);
Debug.Log("Lost");
GameObject.Find("UserDefinedTarget/"+pathToDeactivate).SetActive(false);