# Terrain Active Terrain

[Miscellaneous](../index.md) / [Terrain](index.md) / **Terrain Active Terrain**

## Description

Compares the Active Terrain static property of Terrain class to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Value |  |

## Code

```cs
// <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 Active Terrain")]
    [Category("Miscellaneous/Terrain/Active Terrain")]
    [Description("Compares the Active Terrain static property of Terrain class to another value")]
    
    [Image(typeof(IconTerrain), ColorTheme.Type.Lime)]
    
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionGameObject_Terrain_CheckActiveTerrain : Condition
    {
        [SerializeField] private GetGameObject m_Value = new GetGameObject();
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Terrain");
            string member = TextUtils.ThemeAsKeyword("Active Terrain");
            return $"{className} {member} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            return Terrain.activeTerrain == this.m_Value.Get<Terrain>(args);
        }
    }
}


```

