private void AnimateKitten() { Debug.Log("-> AnimateKitten()"); //resetToActive (GameObject.FindGameObjectsWithTag ("ARObject")); foreach (GameObject ARObject in ARObjects) { ARObject.SetActive(true); } }
void TaskOnClick() { GameObject[] ARObjects = GameObject.FindGameObjectsWithTag("ARObject"); foreach (GameObject ARObject in ARObjects) { ARObject.SetActive(false); } string filename = "Screenshot" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".jpg"; ScreenCapture.CaptureScreenshot(filename); foreach (GameObject ARObject in ARObjects) { ARObject.SetActive(true); } }