- Home /
No sound when playing the car tutorial in unity 3.5
Just recently started in Unity and I recently updated to 3.5 from 3.4. I played the car tutorial and noticed that there is no sound (except for crashes). has anyone else encountered this problem? Is there any way to solve it?
same here! i just Don't know, but if you make a script that gets components like audioSource of the car, and for each audioSource, just say source.Play(); it will be somthing like this
var audioss : Component[];
audioss = GetComponentsInChildren (AudioSource);
for (var source : AudioSource in audioss)
{
source.Play();
}
$$anonymous$$e is in child be cause my car is already a component of another gameobject, you can just use GetComponents(AudioSource);
Answer by Meltdown · Mar 28, 2012 at 06:47 PM
This is an issue since 3.5 was released. In fact Unity has decided that this is going to be expected behaviour from now on.
Simply do the following check on each AudioSource in your soundcontroller.... For example, once DAudio and its properties have been initialised.. add the following code...
if(!DAudio.isPlaying)
DAudio.Play();
Answer by anonymousCoward · Nov 30, 2012 at 08:58 PM
For anyone (like myself) who's new to iPhone, the 'ring' switch also seems to disable all game audio.
Your answer
Follow this Question
Related Questions
Space Invaders style game bug. 1 Answer
BUG? Camera rotation on x set to 90! 0 Answers
Unity physics bug? 3 Answers
Bug. Player can't move. 3 Answers
Two Objects Touching??? 1 Answer