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

TextMeshPro - Input Field Read Only#

UI / Interaction / TextMeshPro - Input Field / TextMeshPro - Input Field Read Only

Description#

Compares the Read Only property of TextMeshPro - Input Field component to another value

Parameters#

Name Description
TMP Input Field

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

namespace VisualScript.Runtime
{
    [Title("TextMeshPro - Input Field Read Only")]
    [Category("UI/Interaction/TextMeshPro - Input Field/Read Only")]
    [Description("Compares the Read Only property of TextMeshPro - Input Field component to another value")]
    
    [Image(typeof(IconUIInputField), ColorTheme.Type.Blue)]
    [Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
    
    [Parameter("TMP Input Field")]
    
    [Serializable]
    public class GenConditionBool_TMP_InputField_CheckReadOnly : Condition
    {
        [SerializeField] private GetGameObject m_TMP_InputField = new GetGameObject(
            new GenTypeGameObject_TMP_InputField()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Read Only");
            return $"{this.m_TMP_InputField} {member}";
        }
        
        protected override bool Run(Args args)
        {
            TMP_InputField component = this.m_TMP_InputField.Get<TMP_InputField>(args);
            if (component == null) return false;
            
            return component.readOnly;
        }
    }
}

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