# Terrain Collect Detail Patches

[Miscellaneous](../index.md) / [Terrain](index.md) / **Terrain Collect Detail Patches**

## Description

Compares the Collect Detail Patches property of Terrain component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Terrain |  |

## 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 Collect Detail Patches")]
    [Category("Miscellaneous/Terrain/Collect Detail Patches")]
    [Description("Compares the Collect Detail Patches property of Terrain component to another value")]
    
    [Image(typeof(IconTerrain), ColorTheme.Type.Lime)]
    
    [Parameter("Terrain")]
    
    [Serializable]
    public class GenConditionBool_Terrain_CheckCollectDetailPatches : Condition
    {
        [SerializeField] private GetGameObject m_Terrain = new GetGameObject(
            new GenTypeGameObject_Terrain()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Collect Detail Patches");
            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.collectDetailPatches;
        }
    }
}


```

