noocrypte.net
http://noozone.free.fr/noocrypte/

unity3 Movie texture loop
http://noozone.free.fr/noocrypte/viewtopic.php?f=47&t=1000
Page 1 sur 1

Auteur:  yann.minh [ Mer Aoû 24, 2011 3:16 pm ]
Sujet du message:  unity3 Movie texture loop

Assigne une texture video au materiau utilisé, et la joue en boucle

Code:
// Assigne une texture video en boucle au matériau utilisé

var movTexture : MovieTexture;

function Start () {
   movTexture.loop = true;
    renderer.material.mainTexture = movTexture;
    movTexture.Play();
    }

Page 1 sur 1 Heures au format UTC [ Heure d’été ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/