- Home /
Video speed increases then using more then 1 copy of prefab with same audio of that video
So ill try to explain whats wrong firstly:
I created prefab of TV screen. It uses movie texture as a main texture, and of course has this movie audio attached. Movie and audio is set to loop and to play as soon as scene is loaded (movie set to play via script of course). everything is right while i have only 1 copy of this TV in scene, but then im adding second TV using this prefab both video and audio play speed doubles, adding third will triple the speed and so on...
For some reasons disabling audio sources from all TV's except 1 will solve this, but then other screens wont have sound playing...
(I hope i explained it clearly)
So I'm using Unity 2017.1.0f3 (Personal edition) 64bit
my video im using as a texture is in mp4 format
this is my script im using to play movie texture
void Start()
{
Renderer r = GetComponent<Renderer>();
MovieTexture movie = (MovieTexture)r.material.mainTexture;
//AudioSource audio = GetComponent<AudioSource>();
movie.Play();
//audio.Play();
movie.loop = true;
}
I tried to play audio trough script as well but that obviously makes no difference, so i just chosen to mark AudioSource component to play on awake.
If anyone faced this issue before pls let me know how you solved it.
Your answer
Follow this Question
Related Questions
How can I implement a SimpleMove max speed? 1 Answer
problems with the collision speed 1 Answer
How do I accelerate particles in Shuriken? 1 Answer
How to slow down my spawn rate? 1 Answer