Unity Tutorial Sounds - How to control the sound by using a slider

Опубликовано: 27 Март 2026
на канале: Computing Academy
187
5

Unity Tutorial Sounds - How to control the sound by using a slider
Easy to follow tutorial on how to add a sound in Unity.
Easy to follow tutorial on how to control the sound in Unity by using a slider
Creating a slider to control sounds by using Unity.
Unity, Sounds, control, control sounds, control sounds in unity, adding a slider, control the sound volume, how to, unity tutorial sounds, unity tutorial sound control, adding and controlling sounds in unity

//Script to go above the Class (public class mySounds : MonoBehaviour {)//
using UnityEngine.Audio;



//Script to go below the Class (public class mySounds : MonoBehaviour {)//


public AudioMixer mymixer;

public void SetLevel (float myslidervol)
{
mymixer.SetFloat("MyMusicVol", Mathf.Log10(myslidervol) * 20);

}



///////////////////////////////////////////////////////////
https://a-webdesign.com
https://dailymanchester.com