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

# Quality Settings Set LOD Settings

[Settings](../index.md) / [Quality Settings](index.md) / **Quality Settings Set LOD Settings**

## Description

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

## Parameters

| Name | Description |
| :--- | :---------- |
| Lod Bias |  |
| Maximum LOD Level |  |
| Set Dirty |  |

## 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 LOD Settings")]
    [Category("Settings/Quality Settings/Set LOD Settings")]
    [Description("Executes the Set LOD Settings static method of the Quality Settings class")]

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

    [Parameter("Lod Bias")]
    [Parameter("Maximum LOD Level")]
    [Parameter("Set Dirty")]

    [Serializable]
    public class GenInstructionQualitySettings_SetLODSettings_3 : Instruction
    {
        [SerializeField] private GetNumber m_LodBias = new GetNumber();

        [SerializeField] private GetInteger m_MaximumLODLevel = new GetInteger();

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

        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Quality Settings");
            string method = TextUtils.ThemeAsKeyword("Set LOD Settings");
            return $"{className} {method} ({this.m_LodBias}, {this.m_MaximumLODLevel}, {this.m_SetDirty})";
        }

        protected override Awaitable Run(Args args)
        {
            QualitySettings.SetLODSettings(
                (float) this.m_LodBias.Get(args),
                (int) this.m_MaximumLODLevel.Get(args),
                (bool) this.m_SetDirty.Get(args)
            );

            return Done;
        }
    }
}
```

