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

Image Min Height#

UI / Graphic / Image / Image Min Height

  • Can Read

  • Cannot Write

Description#

The Min Height property of the Image 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("Image Min Height")]
    [Category("UI/Graphic/Image/Min Height")]
    [Description("The Min Height property of the Image component")]
    
    [Image(typeof(IconUIImage), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Serializable]
    public class GenTypeNumber_Image_MinHeight : TypeNumber
    {
        [SerializeField] private GetGameObject m_Image = new GetGameObject(
            new GenTypeGameObject_Image()
        );
        
        public override double GetPreview(GameObject source)
        {
            GameObject instance = this.m_Image.GetPreview(source);
            if (instance == null) return default;
            
            Image component = instance.GetComponent<Image>();
            return component != null ? component.minHeight : default;
        }
        
        public override double Get(Args args)
        {
            Image instance = this.m_Image.Get<Image>(args);
            return instance != null
                ? instance.minHeight
                : default;
        }
        
        public override string ToString()
        {
            return $"{this.m_Image} Min Height";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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