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

# Quality Settings Active Quality Level Changed

[Settings](../index.md) / [Quality Settings](index.md) / **Quality Settings Active Quality Level Changed**

## Description

Executes whenever the static Active Quality Level Changed event of Quality Settings class is invoked

## 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 Active Quality Level Changed")]
    [Category("Settings/Quality Settings/Active Quality Level Changed")]
    [Description("Executes whenever the static Active Quality Level Changed event of Quality Settings class is invoked")]

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

    [Serializable]
    public class GenTriggerQualitySettings_ActiveQualityLevelChanged : Trigger
    {

        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Quality Settings");
            string member = TextUtils.ThemeAsKeyword("Active Quality Level Changed");
            return $"{className} {member}";
        }

        public override void OnDisable()
        {
            base.OnDisable();
            QualitySettings.activeQualityLevelChanged -= this.Run;
        }

        public override void OnEnable()
        {
            base.OnEnable();
            QualitySettings.activeQualityLevelChanged += this.Run;
        }

        private void Run(int value1, int value2)
        {
            using Args args = Args.Get(
                this.Component,
                this.Component
            );

            this.Run(args);
        }
    }
}
```

