Search Unity

DrawTexture & .ogv Move Texture

Discussion in 'Immediate Mode GUI (IMGUI)' started by sherlockturtle, Sep 16, 2014.

  1. sherlockturtle

    sherlockturtle

    Joined:
    Jan 23, 2012
    Posts:
    592
    So, currently I have this script that sets that draws the movie texture, it actually starts plays it some where else but I know it plays it. If I use an .avi file it works but is very choppy, if I use a .ogv file it does not work at all. But, if I use the .ogv file and set it as a material of an object it works fine. Is there any way to play .ogv while using draw texture to actually draw it.

    Code (csharp):
    1.  
    2.     public MovieTexture currentMovie;
    3.  
    4. void update(){
    5.   GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), currentMovie, ScaleMode.StretchToFill, false, 0.0f);
    6. }
    7.