Search Unity

Video MovieTexture deprecation

Discussion in 'Audio & Video' started by superbaad555, May 28, 2019.

  1. superbaad555

    superbaad555

    Joined:
    Jul 6, 2018
    Posts:
    1
    Hello,

    i am trying to type cast a Texture to Movietexture, but since Movie Texture is deprecated i think that wont work. any suggestions of what i should do?

    Code (CSharp):
    1.         MovieTexture video360_1 = (MovieTexture)Sphere1.GetComponent<Renderer>().material.mainTexture;
    2.         MovieTexture video360_2 = (MovieTexture)Sphere2.GetComponent<Renderer>().material.mainTexture;