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 Keep Unused Rendering Resources#

Miscellaneous / Terrain / Terrain Keep Unused Rendering Resources

Description#

Compares the Keep Unused Rendering Resources property of Terrain component to another value

Parameters#

Name Description
Terrain

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
{
    [Title("Terrain Keep Unused Rendering Resources")]
    [Category("Miscellaneous/Terrain/Keep Unused Rendering Resources")]
    [Description("Compares the Keep Unused Rendering Resources property of Terrain component to another value")]
    
    [Image(typeof(IconTerrain), ColorTheme.Type.Lime)]
    
    [Parameter("Terrain")]
    
    [Serializable]
    public class GenConditionBool_Terrain_CheckKeepUnusedRenderingResources : Condition
    {
        [SerializeField] private GetGameObject m_Terrain = new GetGameObject(
            new GenTypeGameObject_Terrain()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Keep Unused Rendering Resources");
            return $"{this.m_Terrain} {member}";
        }
        
        protected override bool Run(Args args)
        {
            Terrain component = this.m_Terrain.Get<Terrain>(args);
            if (component == null) return false;
            
            return component.keepUnusedRenderingResources;
        }
    }
}

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