#Audio problem for Giggity
1 messages · Page 1 of 1 (latest)
How would i check this? Im almost positive this is the only script in the whole scene
I hope your Player window is not on Mute. Also, while the scene is playing, check the AudioSource from the hierarchy check the clip field in the inspector. Should not be empty while playing, also check other configs there.
Maybe make a button that calls audioSource.Play() where audioSource is an instance of the AudioSource in the scene. This way you can debug it properly.
yup audio in the rest of the game works. Game window not on mute. I can debug and the audio sources are still filled in the line they are called to play, and they are there in the inspector. Audio sources are in same location as listener since they are at 0,0,0 as children of the camera with listener component.
Check clip length
Change clip.
I don't see a reason for it to not work if other scenes are working.
HOLD ON
Due you have an Audio Listener in the scene ?
It's a component that's attached to the Camera by default but double check if there's an AudioListener in the scene
Search the component name in the Hierarchy window.
@odd geode
Audio listener is in the scene and active and in same world space position as the sounds since they are children of the object
@elfin bear i tried adding a button playing the audio source and the button successfully calls the method but doesn't play the audio
The audio length are all between .8 and 2 seconds
Is it possible to send only the relevant(remove irrelevant dependencies) parts of the project?:
the scene, audio clip and the script specifically.
You mean send it to u?
Yes,
But
You can also try making a new scene and adding just an audio source, audio listener, clip.
(do you have any error in the console ?)
Created a new scene and the sound plays just fine there
There's no errors in console for the main scene
remake that buggy scene
🤨 i just unchecked then rechecked the audio listener and the audio all worked
Then i tried to play the game and the sound in that scene stopped working again
Idk what the problem was but i basically copy and pasted everything to a new scene and it works