Search Unity

video on canvas

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by nelsonlarocca, Dec 22, 2014.

  1. nelsonlarocca

    nelsonlarocca

    Joined:
    Aug 11, 2014
    Posts:
    15
    Hi !

    What should be the way to play a video inside a panel ? contained in a canvas of course

    Thanks
    Nelson
    Using Unity Pro
     
  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,146
    The following idea it totally untested

    Try using a RawImage and assign you movie texture to the texture property. Then through code on start you can say .texture.Play().
     
  3. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    535
    how to use mp4 from out side of project for streaming?
     
  4. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,146
    you'd have to import it into unity so it could be a video texture. from there create a assetbundle and load that. (i think)
     
  5. nelsonlarocca

    nelsonlarocca

    Joined:
    Aug 11, 2014
    Posts:
    15