This is script is attached to a Canvas.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
public class SettingsMenu : MonoBehaviour
{
public AudioMixer audioMixer;
public void SetVolume(float volume)
{
audioMixer.SetFloat("Volume", volume);
}
public void SetQuality(int qualityIndex)
{
QualitySettings.SetQualityLevel(qualityIndex);
}
}
And then under it in the Hierarchy for example I have Graphics a DropDown ui. And on the Graphics in the Inspector at the bottom in On Value Changed I dragged the Canvas over but then when I click on No Function > SettingsMenu I can see the SetQuality method but there should be also SetQuality at the top under Dynamic int and it’s not there :
Same problem with the SetVolume method. And I had this Dynamic float/int before but they are not exist now.