Esempio n. 1
0
    public override void PlaySpherical()
    {
        movie.UnloadMovie();
        string url   = "file://" + path;
        Fader  fader = Sphere.GetComponent <Fader>();

        Debug.Log(url);
        StartCoroutine(LoadImageCo(url, image =>
        {
            fader.DoFade();
            Resources.UnloadUnusedAssets();
            Material tempMaterial          = Sphere.GetComponent <Renderer>().material;
            tempMaterial.mainTextureOffset = new Vector2(0, 0);
            tempMaterial.mainTextureScale  = new Vector2(1, 1);
            tempMaterial.mainTexture       = image;

            //sphereAnchorer.ResetRotation();



            VideoControls.SetActive(false);
            toggleButton.gameObject.SetActive(true);
            toggleButton.Play();
            Debug.Log("stuck");
        }));
    }
Esempio n. 2
0
    public override void PlaySpherical()
    {
        Fader fader = Sphere.GetComponent <Fader>();

        fader.DoFade();

        movie._filename = path;
        movie.LoadMovie(true);
        VideoControls.SetActive(true);
        toggleButton.gameObject.SetActive(true);
        toggleButton.Play();
        sphereAnchorer.ResetRotation();
    }