---
tags:
    - "UI, Layout"
---

# Vertical Layout Group Child Control Height

[UI](../../index.md) / [Layout](../index.md) / [Vertical Layout Group](index.md) / **Vertical Layout Group Child Control Height**

## Description

Compares the Child Control Height property of Vertical Layout Group component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Vertical Layout Group |  |

## 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;
using UnityEngine.UI;

namespace VisualScript.Runtime
{
    [Title("Vertical Layout Group Child Control Height")]
    [Category("UI/Layout/Vertical Layout Group/Child Control Height")]
    [Description("Compares the Child Control Height property of Vertical Layout Group component to another value")]
    
    [Image(typeof(IconVerticalLayoutGroup), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]
    
    [Parameter("Vertical Layout Group")]
    
    [Serializable]
    public class GenConditionBool_VerticalLayoutGroup_CheckChildControlHeight : Condition
    {
        [SerializeField] private GetGameObject m_VerticalLayoutGroup = new GetGameObject(
            new GenTypeGameObject_VerticalLayoutGroup()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Child Control Height");
            return $"{this.m_VerticalLayoutGroup} {member}";
        }
        
        protected override bool Run(Args args)
        {
            VerticalLayoutGroup component = this.m_VerticalLayoutGroup.Get<VerticalLayoutGroup>(args);
            if (component == null) return false;
            
            return component.childControlHeight;
        }
    }
}


```

