Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unity5のグループに対するオーディオの設定
using UnityEngine;
using System.Collections;
public class SetVolumes : MonoBehaviour {
[SerializeField]
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