void Start() { snapShot = GameObject.FindObjectOfType <CaptureAndSave>(); screenShotMger = GameObject.FindObjectOfType <ScreenShotMger>(); // Build path name for Android screenShotDirectory = "/storage/emulated/0/Pictures/"; screenShotAblumName = snapShot.ALBUM_NAME; Debug.Log("Application.dataPath " + Application.dataPath); Debug.Log("Application.persistentDataPath " + Application.persistentDataPath); }
// Use this for initialization void Start() { // Getting ScreenShotMger screenShotMger = GameObject.FindWithTag("SceneMger").GetComponent <ScreenShotMger>(); // Getting hit object renderer hitObject_rend = m_HitObject.GetComponent <Renderer> (); hitObject_rend.enabled = false; // Getting point cloud object pointCloudObj = GameObject.Find("PointCloudExample"); Debug.Log("pointCloudObj: " + pointCloudObj); pointCloudParticle = pointCloudObj.GetComponent <UnityPointCloudExample> (); Debug.Log("pointCloudParticle: " + pointCloudParticle); }
private void Start() { screenShot = GameObject.FindObjectOfType <ScreenShotMger>().GetComponent <ScreenShotMger>(); }