I am having problem with Spatial blend. I have an audio clip, which is playing in 3D. The problem is the audio is “One shot audio”, that means I can’t just change Spatial Blend to 0 (2D) in settings. I need to type it in code. Is there any way to script it? I am not good at scripting (just beginning making games).
My code for playing that audioclip:
public AudioClip respawnAudio;
public IEnumerator RespawnPlayer ()
AudioSource.PlayClipAtPoint(respawnAudio, new Vector2(spawnPoint.position.x, spawnPoint.position.y), 1f);
yield return new WaitForSeconds(spawnDelay);
Thanks and sorry for my english. It’s not my native language.