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