---
tags:
    - "UI, User, Interface, TMP, Text, Mesh, Pro"
---

# TextMeshPro - Input Field Set Global Point Size

[UI](../../index.md) / [Interaction](../index.md) / [TextMeshPro - Input Field](index.md) / **TextMeshPro - Input Field Set Global Point Size**

## Description

Executes the Set Global Point Size method on the TextMeshPro - Input Field component

## Parameters

| Name | Description |
| :--- | :---------- |
| Point Size |  |

## 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;
using TMPro;

namespace VisualScript.Runtime
{
    [Title("TextMeshPro - Input Field Set Global Point Size")]
    [Category("UI/Interaction/TextMeshPro - Input Field/Set Global Point Size")]
    [Description("Executes the Set Global Point Size method on the TextMeshPro - Input Field component")]
    
    [Image(typeof(IconUIInputField), ColorTheme.Type.Blue)]
    [Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
    
    [Parameter("Point Size")]
    
    [Serializable]
    public class GenInstructionTMP_InputField_SetGlobalPointSize_1 : Instruction
    {
        [SerializeField] private GetGameObject m_TMP_InputField = new GetGameObject(
            new GenTypeGameObject_TMP_InputField()
        );
        
        [SerializeField] private GetNumber m_PointSize = new GetNumber();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Set Global Point Size");
            return $"{this.m_TMP_InputField} {method} ({this.m_PointSize})";
        }
        
        protected override Awaitable Run(Args args)
        {
            TMP_InputField component = this.m_TMP_InputField.Get<TMP_InputField>(args);
            if (component == null) return Done;
            
            component.SetGlobalPointSize(
                (float) this.m_PointSize.Get(args)
            );
            
            return Done;
        }
    }
}


```

