Search Unity

Video texture

Discussion in 'Scripting' started by cybervalie, Nov 13, 2009.

  1. cybervalie

    cybervalie

    Joined:
    Sep 27, 2009
    Posts:
    94
    hello

    mabe you treated this question many times, but i don't find a topic on it.
    For a begginer, how should i do for take a video and put it in unity as a texture animate? The only thing i know is that the video is beter to be in quicktime format, but for the rest.... (i have downloaded a project in unify comunity about that but it don't work. The video that should work appear like a black texture, but no animation so...) can someone explain me clairly how i should proceed?
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    1) Videos will be converted to ogg internally, so they are optimally in the "home format" of the platform (qt on osx, wmv or qt on windows)

    2) once its in, you can create a corresponding reference in your component and drag it in

    3) next thing you need to do is replace the texture of a specific renderer (often GUITexture ...) with your movie texture and then call play on it.
     
  3. cybervalie

    cybervalie

    Joined:
    Sep 27, 2009
    Posts:
    94
    Thank you for this precisions, i will try that :)