---
tags:
    - "UI, User, Interface, Label"
---

# Set Text Resize Text Max Size

[UI](../../index.md) / [Graphic](../index.md) / [Text](index.md) / **Set Text Resize Text Max Size**

## Description

Sets the Resize Text Max Size property of Text component

## Parameters

| Name | Description |
| :--- | :---------- |
| Text |  |
| Value |  |

## 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("Set Text Resize Text Max Size")]
    [Category("UI/Graphic/Text/Resize Text Max Size")]
    [Description("Sets the Resize Text Max 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_SetResizeTextMaxSize : 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 Max 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.resizeTextMaxSize = (int) this.m_Value.Get(args);
            
            return Done;
        }
    }
}


```

