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 Active Terrain#

Miscellaneous / Terrain / Terrain Active Terrain

  • Can Read

  • Cannot Write

Description#

The Active Terrain static property of the Terrain class

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]
    
    [Title("Terrain Active Terrain")]
    [Category("Miscellaneous/Terrain/Active Terrain")]
    [Description("The Active Terrain static property of the Terrain class")]
    
    [Image(typeof(IconTerrain), ColorTheme.Type.Lime)]
    
    [Serializable]
    public class GenTypeGameObject_Terrain_ActiveTerrain : TypeGameObject
    {
        
        public override GameObject GetPreview(GameObject source)
        {
            return Terrain.activeTerrain.gameObject;
        }
        
        public override GameObject Get(Args args)
        {
            return Terrain.activeTerrain.gameObject;
        }
        
        public override U Get<U>(Args args)
        {
            if (typeof(U) == typeof(Terrain))
            {
                return Terrain.activeTerrain as U;
            }
            
            return base.Get<U>(args);
        }
        
        public override string ToString()
        {
            return $"Terrain Active Terrain";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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