Answers for "change graphics settings C# unity"

C#
0

change graphics settings C# unity

using UnityEngine;public class Example : MonoBehaviour
{
    void OnGUI()
    {
        string[] names = QualitySettings.names;
        GUILayout.BeginVertical();
        for (int i = 0; i < names.Length; i++)
        {
            if (GUILayout.Button(names[i]))
            {
                QualitySettings.SetQualityLevel(i, true);
            }
        }
        GUILayout.EndVertical();
    }
}
Posted by: Guest on October-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language