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

LOD Group Global Illumination LOD#

Rendering / LOD Group / LOD Group Global Illumination LOD

  • Can Read

  • Can Write

Description#

The Global Illumination LOD property of the LOD Group component

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
{
    [Get]
    [Set]

    [Title("LOD Group Global Illumination LOD")]
    [Category("Rendering/LOD Group/Global Illumination LOD")]
    [Description("The Global Illumination LOD property of the LOD Group component")]

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

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

        public override double GetPreview(GameObject source)
        {
            GameObject instance = this.m_LODGroup.GetPreview(source);
            if (instance == null) return default;

            LODGroup component = instance.GetComponent<LODGroup>();
            return component != null ? component.globalIlluminationLOD : default;
        }

        public override double Get(Args args)
        {
            LODGroup instance = this.m_LODGroup.Get<LODGroup>(args);
            return instance != null
                ? instance.globalIlluminationLOD
                : default;
        }

        public override void Set(double value, Args args)
        {
            LODGroup component = this.m_LODGroup.Get<LODGroup>(args);
            if (component != null) component.globalIlluminationLOD = (int) value;
        }

        public override string ToString()
        {
            return $"{this.m_LODGroup} Global Illumination LOD";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.