public void Preview() { Transform prevPos = GameObject.Find("gif_recieve_pos").transform; foreach (var component in Camera.main.GetComponents <Component>()) { Debug.Log(component.name); } transform.position = prevPos.position; transform.SetParent(prevPos); giftManager.RemoveGift(this); transform.localRotation = Quaternion.identity; isReady = true; FindObjectOfType <Vuforia.VuforiaBehaviour>().enabled = false; }