3D to 2D audio with script (Spatial Blend)

Updated on July 30, 2017 in [A] Audio
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on July 30, 2017


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.

  • Liked by