- Home /
Can I play an AudioSource in the editor although the 'Mute Audio' toggle is set in the game view?
I was previewing custom sound objects in the editor by instantiating an AudioSource with hideflags, playing it and later deleting it. I've just now noticed, that the source won't play, when the 'Mute Audio' toggle is set in the game view.
I was actually expecting this toggle to only affect runtime sound, but anyway, I was hoping for a way to play my sound as a preview in the editor, even if that toggle is on. This would mirror the way the preview on AudioClips works. I can still preview those in the project panel although the mute button is on, so there must be a way.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Initialising List array for use in a custom Editor 1 Answer
Multiple Cars not working 1 Answer
Trying to make a volume slider bar, Part 2 0 Answers
How do I change the default icon of a .asset file ? 1 Answer