Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Set LOD Group Global Illumination LOD#

Rendering / LOD Group / Set LOD Group Global Illumination LOD

Description#

Sets the Global Illumination LOD property of LOD Group component

Parameters#

Name Description
LOD Group
Value

Code#

// <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;
using UnityEngine.Rendering;

namespace VisualScript.Runtime
{
    [Title("Set LOD Group Global Illumination LOD")]
    [Category("Rendering/LOD Group/Global Illumination LOD")]
    [Description("Sets the Global Illumination LOD property of LOD Group component")]

    [Image(typeof(IconLOD), ColorTheme.Type.Blue)]

    [Parameter("LOD Group")]
    [Parameter("Value")]

    [Serializable]
    public class GenInstructionInteger_LODGroup_SetGlobalIlluminationLOD : Instruction
    {
        [SerializeField] private GetGameObject m_LODGroup = new GetGameObject(
            new GenTypeGameObject_LODGroup()
        );

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

        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Global Illumination LOD");
            return $"{this.m_LODGroup} {member} = {this.m_Value}";
        }

        protected override Awaitable Run(Args args)
        {
            LODGroup component = this.m_LODGroup.Get<LODGroup>(args);
            if (component == null) return Done;

            component.globalIlluminationLOD = (int) this.m_Value.Get(args);

            return Done;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.