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

Grid Layout Group Max Height#

UI / Layout / Grid Layout Group / Grid Layout Group Max Height

  • Can Read

  • Cannot Write

Description#

The Max Height property of the Grid Layout Group component

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
{
    [Get]

    [Title("Grid Layout Group Max Height")]
    [Category("UI/Layout/Grid Layout Group/Max Height")]
    [Description("The Max Height property of the Grid Layout Group component")]

    [Image(typeof(IconGridLayoutGroup), ColorTheme.Type.TextLight)]
    [Keywords("UI, Layout")]

    [Serializable]
    public class GenTypeNumber_GridLayoutGroup_MaxHeight : TypeNumber
    {
        [SerializeField] private GetGameObject m_GridLayoutGroup = new GetGameObject(
            new GenTypeGameObject_GridLayoutGroup()
        );

        public override double GetPreview(GameObject source)
        {
            GameObject instance = this.m_GridLayoutGroup.GetPreview(source);
            if (instance == null) return default;

            GridLayoutGroup component = instance.GetComponent<GridLayoutGroup>();
            return component != null ? component.maxHeight : default;
        }

        public override double Get(Args args)
        {
            GridLayoutGroup instance = this.m_GridLayoutGroup.Get<GridLayoutGroup>(args);
            return instance != null
                ? instance.maxHeight
                : default;
        }

        public override string ToString()
        {
            return $"{this.m_GridLayoutGroup} Max Height";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.