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 Text Resize Text Min Size#

UI / Graphic / Text / Set Text Resize Text Min Size

Description#

Sets the Resize Text Min Size property of Text component

Parameters#

Name Description
Text
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 Text Resize Text Min Size")]
    [Category("UI/Graphic/Text/Resize Text Min Size")]
    [Description("Sets the Resize Text Min Size property of Text component")]
    
    [Image(typeof(IconUIText), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface, Label")]
    
    [Parameter("Text")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenInstructionInteger_Text_SetResizeTextMinSize : Instruction
    {
        [SerializeField] private GetGameObject m_Text = new GetGameObject(
            new GenTypeGameObject_Text()
        );
        
        [SerializeField] private GetInteger m_Value = new GetInteger();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Resize Text Min Size");
            return $"{this.m_Text} {member} = {this.m_Value}";
        }
        
        protected override Awaitable Run(Args args)
        {
            Text component = this.m_Text.Get<Text>(args);
            if (component == null) return Done;
            
            component.resizeTextMinSize = (int) this.m_Value.Get(args);
            
            return Done;
        }
    }
}

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