void Start() { mParser = transform.Find("targetObject(Clone)").GetComponent <metadataParse>(); targetControl = GameObject.FindObjectOfType <DynamicDataSetLoader>(); analyticsControl = GameObject.FindObjectOfType <analyticsController>(); debugText = GameObject.Find("Debug").GetComponent <Text>(); mTrackableBehaviour = GetComponent <TrackableBehaviour>(); if (mTrackableBehaviour) { mTrackableBehaviour.RegisterTrackableEventHandler(this); } }
void Start() { //local path for phone streamPath = Application.persistentDataPath + "/"; #if UNITY_IOS streamPath += "Library/Application Support/"; #endif analyticsControl = GameObject.FindObjectOfType <analyticsController> (); //find the rawimage object for video videoGameObject = transform.Find("videoCanvas/videoTexture").gameObject; videoTex = videoGameObject.GetComponent <RawImage> (); videoTex.canvasRenderer.SetAlpha(0.0f); videoGameObject_preview = transform.Find("videoCanvas_preview/preview").gameObject; videoTex_preview = videoGameObject_preview.GetComponent <RawImage>(); pauseIcon.gameObject.SetActive(true); }