I’m trying to change the volume of a group by code, but I can’t seem to access the volume information?
using UnityEngine;
using System.Collections;
using UnityEngine.Audio;
public class GameSettings : MonoBehaviour {
public AudioMixerGroup musicGroup;
[Range(0, 1)] public float musicVolume;
}
I’ve assigned musicGroup properly…