Input Field Should Activate On Select#
UI / Interaction / Input Field / Input Field Should Activate On Select
Description#
Compares the Should Activate On Select property of Input Field component to another value
Parameters#
| Name | Description |
|---|---|
| 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;
namespace VisualScript.Runtime
{
[Title("Input Field Should Activate On Select")]
[Category("UI/Interaction/Input Field/Should Activate On Select")]
[Description("Compares the Should Activate On Select property of Input Field component to another value")]
[Image(typeof(IconUIInputField), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Parameter("Input Field")]
[Serializable]
public class GenConditionBool_InputField_CheckShouldActivateOnSelect : Condition
{
[SerializeField] private GetGameObject m_InputField = new GetGameObject(
new GenTypeGameObject_InputField()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Should Activate On Select");
return $"{this.m_InputField} {member}";
}
protected override bool Run(Args args)
{
InputField component = this.m_InputField.Get<InputField>(args);
if (component == null) return false;
return component.shouldActivateOnSelect;
}
}
}