Input Field Min Width#
UI / Interaction / Input Field / Input Field Min Width
Description#
Compares the Min Width property of Input Field component to another value
Parameters#
| Name | Description |
|---|---|
| Input Field | |
| Compare | |
| Value |
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 Min Width")]
[Category("UI/Interaction/Input Field/Min Width")]
[Description("Compares the Min Width property of Input Field component to another value")]
[Image(typeof(IconUIInputField), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Parameter("Input Field")]
[Parameter("Compare")]
[Parameter("Value")]
[Serializable]
public class GenConditionNumber_InputField_CheckMinWidth : Condition
{
[SerializeField] private GetGameObject m_InputField = new GetGameObject(
new GenTypeGameObject_InputField()
);
[SerializeField] private CompareNumber m_Compare = new CompareNumber();
[SerializeField] private GetNumber m_Value = new GetNumber();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Min Width");
return $"{this.m_InputField} {member} {this.m_Compare} {this.m_Value}";
}
protected override bool Run(Args args)
{
InputField component = this.m_InputField.Get<InputField>(args);
if (component == null) return false;
return this.m_Compare.Compare(component.minWidth, (float) this.m_Value.Get(args));
}
}
}