- Home /
How do I play audio source on Maximize on Play / Audio Source wont play on Maximize
I can't get the audio source to play on maximize to play in scene, I attach the audio source to the empty gameobject and I tried it on maximize on play again the audio source still wouldn't play. I got the audio to only play in the update function. When it played in the update function it sounded like the music is skipping . I added the audio source code back in the start function and it wouldn't play on maximize on play. This is a project for a mobile game . and I have pic of the audio clip I want to play .
I wanna play audio source : 06 - Primal Fear (loop)
Here is Script :
using UnityEngine;
using System.Collections;
public class auo : MonoBehaviour {
// Use this for initialization
void Start () {
GetComponent<AudioSource>().Play();
}
// Update is called once per frame
void update () {
}
}
"$$anonymous$$aximize on Play" just maximizes the Game window when you press the play (the game) button. It has nothing to do with when and how the audio source is played.
Your answer
Follow this Question
Related Questions
Problem with playing sound on Trigger-Enter 2 Answers
play audio from frequency and amplitude file 0 Answers
Audio clip not playing 1 Answer
One sound gets quieter when other is played? 1 Answer
How Do I Get This To Play Sound? 0 Answers