---
tags:
    - "Graphics, Quality, Options, Performance"
---

# Quality Settings Set Quality Level

[Settings](../index.md) / [Quality Settings](index.md) / **Quality Settings Set Quality Level** Index, ApplyExpensiveChanges

## Description

Executes the Set Quality Level static method of the Quality Settings class

## Parameters

| Name | Description |
| :--- | :---------- |
| Index |  |
| Apply Expensive Changes |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Quality Settings Set Quality Level")]
    [Category("Settings/Quality Settings/Set Quality Level", "Index, ApplyExpensiveChanges")]
    [Description("Executes the Set Quality Level static method of the Quality Settings class")]

    [Image(typeof(IconCog), ColorTheme.Type.TextLight, typeof(BadgeSettings))]
    [Keywords("Graphics, Quality, Options, Performance")]

    [Parameter("Index")]
    [Parameter("Apply Expensive Changes")]

    [Serializable]
    public class GenInstructionQualitySettings_SetQualityLevel_2_IntIndex_BoolApplyExpensiveChanges : Instruction
    {
        [SerializeField] private GetInteger m_Index = new GetInteger();

        [SerializeField] private GetBool m_ApplyExpensiveChanges = new GetBool();

        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Quality Settings");
            string method = TextUtils.ThemeAsKeyword("Set Quality Level");
            return $"{className} {method} ({this.m_Index}, {this.m_ApplyExpensiveChanges})";
        }

        protected override Awaitable Run(Args args)
        {
            QualitySettings.SetQualityLevel(
                (int) this.m_Index.Get(args),
                (bool) this.m_ApplyExpensiveChanges.Get(args)
            );

            return Done;
        }
    }
}
```

