# Set Terrain Enable Heightmap LOD Frustum Culling

[Miscellaneous](../index.md) / [Terrain](index.md) / **Set Terrain Enable Heightmap LOD Frustum Culling**

## Description

Sets the Enable Heightmap LOD Frustum Culling property of Terrain component

## Parameters

| Name | Description |
| :--- | :---------- |
| Terrain |  |
| 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("Set Terrain Enable Heightmap LOD Frustum Culling")]
    [Category("Miscellaneous/Terrain/Enable Heightmap LOD Frustum Culling")]
    [Description("Sets the Enable Heightmap LOD Frustum Culling property of Terrain component")]

    [Image(typeof(IconTerrain), ColorTheme.Type.Lime)]

    [Parameter("Terrain")]
    [Parameter("Value")]

    [Serializable]
    public class GenInstructionBool_Terrain_SetEnableHeightmapLODFrustumCulling : Instruction
    {
        [SerializeField] private GetGameObject m_Terrain = new GetGameObject(
            new GenTypeGameObject_Terrain()
        );

        [SerializeField] private GetBool m_Value = new GetBool();

        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Enable Heightmap LOD Frustum Culling");
            return $"{this.m_Terrain} {member} = {this.m_Value}";
        }

        protected override Awaitable Run(Args args)
        {
            Terrain component = this.m_Terrain.Get<Terrain>(args);
            if (component == null) return Done;

            component.enableHeightmapLODFrustumCulling = (bool) this.m_Value.Get(args);

            return Done;
        }
    }
}
```

