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

# Input Field Deactivate Input Field

[UI](../../index.md) / [Interaction](../index.md) / [Input Field](index.md) / **Input Field Deactivate Input Field**

## Description

Executes the Deactivate Input Field method on the Input Field component

## 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("Input Field Deactivate Input Field")]
    [Category("UI/Interaction/Input Field/Deactivate Input Field")]
    [Description("Executes the Deactivate Input Field method on the Input Field component")]
    
    [Image(typeof(IconUIInputField), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Serializable]
    public class GenInstructionInputField_DeactivateInputField_0 : Instruction
    {
        [SerializeField] private GetGameObject m_InputField = new GetGameObject(
            new GenTypeGameObject_InputField()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Deactivate Input Field");
            return $"{this.m_InputField} {method}";
        }
        
        protected override Awaitable Run(Args args)
        {
            InputField component = this.m_InputField.Get<InputField>(args);
            if (component == null) return Done;
            
            component.DeactivateInputField();
            
            return Done;
        }
    }
}


```

