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

Terrain Dering Light Probes For Trees#

Miscellaneous / Terrain / Terrain Dering Light Probes For Trees

  • Can Read

  • Can Write

Description#

The Dering Light Probes For Trees property of the Terrain 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;

namespace VisualScript.Runtime
{
    [Get]
    [Set]
    
    [Title("Terrain Dering Light Probes For Trees")]
    [Category("Miscellaneous/Terrain/Dering Light Probes For Trees")]
    [Description("The Dering Light Probes For Trees property of the Terrain component")]
    
    [Image(typeof(IconTerrain), ColorTheme.Type.Lime)]
    
    [Serializable]
    public class GenTypeBool_Terrain_DeringLightProbesForTrees : TypeBool
    {
        [SerializeField] private GetGameObject m_Terrain = new GetGameObject(
            new GenTypeGameObject_Terrain()
        );
        
        public override bool GetPreview(GameObject source)
        {
            GameObject instance = this.m_Terrain.GetPreview(source);
            if (instance == null) return default;
            
            Terrain component = instance.GetComponent<Terrain>();
            return component != null ? component.deringLightProbesForTrees : default;
        }
        
        public override bool Get(Args args)
        {
            Terrain instance = this.m_Terrain.Get<Terrain>(args);
            return instance != null
                ? instance.deringLightProbesForTrees
                : default;
        }
        
        public override void Set(bool value, Args args)
        {
            Terrain component = this.m_Terrain.Get<Terrain>(args);
            if (component != null) component.deringLightProbesForTrees = (bool) value;
        }
        
        public override string ToString()
        {
            return $"{this.m_Terrain} Dering Light Probes For Trees";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.