I am not able to play my audio source if I deactivate the panel where the AudioSource is attached to AFTER it.
_audioBtnEnter = tmpBtnGeneral.GetComponent<AudioSource>(); _audioBtnEnter.Play(); tmpBtnGeneral.SetActive(false);
I would totaly understand if this would not be possible:
But why does the first code not trigger the audio play?
Is this a race condition problem?