Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Play a Movie?

Discussion in 'Getting Started' started by vegetamaker, Mar 21, 2017.

  1. vegetamaker

    vegetamaker

    Joined:
    Feb 28, 2017
    Posts:
    37
    Hello again. I was looking a way to create a fade transicion between scenes. I did a video of a light and then I want it fade out.

    But for now, I did't find any way to play a movie.

    The closer thing I found is MovieTexture, that, if I understood it correctly, is "outdated" for play a movie.

    Can someone give me a tip with it? I don't even know how to start to search it. Even in Unity documents can't find nothing related with movies.

    Again thanks so much!
     
  2. vegetamaker

    vegetamaker

    Joined:
    Feb 28, 2017
    Posts:
    37
    Well, Im back :3. I found that in 5.6 Unity will have a native movie player for things like this. That will be cool

    For now I was practicing with Movie Textures and I have a problem now. Better an example. The video is just an example. I tryed with a oog sample from unity help and look exactly same.

    https://i.gyazo.com/df9b1d9594e6db09ce3315c921678b2d.mp4

    My code is pretty simple

    Code (CSharp):
    1. ((MovieTexture)GetComponent<Renderer> ().material.mainTexture).Play ();
    I'll continue investigating, ofc.

    Again, thanks.


    EDIT: Nevermind, I saw the problem. I was using a floor prototype game object (from standard assets) instead a normal mesh. ^^
     
    Last edited: Mar 21, 2017