Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class SpatialSound : MonoBehaviour
{
public void Awake()
{
var audio = GetComponent<AudioSource>();
audio.spatialize = true;
audio.spatialBlend = 1.0f;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.