Quantcast
Channel: Latest Questions by The_Magical_Kiwi
Viewing all articles
Browse latest Browse all 22

Playing a movie texture. No .Play() definition in UnityEngine.Texture class (Documentation seems to think there should be)

$
0
0
Hey, I'm trying to play a movie that I have placed as a texture onto a material. The [movie texture script reference][1] says the following: // this line of code will make the Movie Texture begin playing renderer.material.mainTexture.Play(); However the Texture class does not contain a [definition][2] for Play(). Can anyone tell me where I'm going wrong? My object has several materials so I am referencing the one with the movie texture on using renderer.materials[index] but I've also tried on an object with just one material and referenced it via the the example code supplied above. [1]: http://docs.unity3d.com/Documentation/Manual/VideoFiles.html [2]: http://docs.unity3d.com/Documentation/ScriptReference/Texture.html

Viewing all articles
Browse latest Browse all 22

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>