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

Set Vertical Layout Group Child Force Expand Height#

UI / Layout / Vertical Layout Group / Set Vertical Layout Group Child Force Expand Height

Description#

Sets the Child Force Expand Height property of Vertical Layout Group component

Parameters#

Name Description
Vertical Layout Group
Value

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

namespace VisualScript.Runtime
{
    [Title("Set Vertical Layout Group Child Force Expand Height")]
    [Category("UI/Layout/Vertical Layout Group/Child Force Expand Height")]
    [Description("Sets the Child Force Expand Height property of Vertical Layout Group component")]
    
    [Image(typeof(IconVerticalLayoutGroup), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]
    
    [Parameter("Vertical Layout Group")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenInstructionBool_VerticalLayoutGroup_SetChildForceExpandHeight : Instruction
    {
        [SerializeField] private GetGameObject m_VerticalLayoutGroup = new GetGameObject(
            new GenTypeGameObject_VerticalLayoutGroup()
        );
        
        [SerializeField] private GetBool m_Value = new GetBool();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Child Force Expand Height");
            return $"{this.m_VerticalLayoutGroup} {member} = {this.m_Value}";
        }
        
        protected override Awaitable Run(Args args)
        {
            VerticalLayoutGroup component = this.m_VerticalLayoutGroup.Get<VerticalLayoutGroup>(args);
            if (component == null) return Done;
            
            component.childForceExpandHeight = (bool) this.m_Value.Get(args);
            
            return Done;
        }
    }
}

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