Ok so I am not going to pretend that I know what I am doing here as the last few hours have left me with nothing but a headache.
What I have done is created a very simple menu that have three functioning buttons. The button that I want to focus on is the “Settings” button takes me to the “Settings” screen and on this screen I am working on a volume slider. <== This is where the headache stars
I have follow a tutorial that I found on youtube to try and get a volume slider working. Well needless to say I can not get it to work.
Well instead of just giving up there I followed the same tutoral but this time I created a volume slider on my main menu page and just like magic it started to work.
Is there something that I am do wrong or is it
Tutorial: [https://www.youtube.com/watc
//This is the working code from my main menu.
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
// When makeing buttong make sure you user the following command
// public void ##button name##(string newGamelevel)
// Dont know why this works but it does
public class ButtonManager : MonoBehaviour
{
public void NewGameBtn(string newGamelevel)
{
SceneManager.LoadScene(newGamelevel);
}
public void SettingGameBtn(string newGamelevel)
{
SceneManager.LoadScene(newGamelevel);
}
public void ExitGameBtn()
{
Application.Quit();
}
{
public void VolumControl (float volumeControl)
audio.volume = volumeControl
}
}
h?v=anbuZoWroIo&t=3s](https://www.youtube.com/watch?v=anbuZoWroIo&t=3s)