Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using UnityEngine;
using System.Collections;
public class SetVolumes : MonoBehaviour {
UnityEngine.Audio.AudioMixer mixer;
public float masterVolume
set{ mixer.SetFloat("MasterVolume", Mathf.Lerp(-80, 0, value)); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment