Vertical Layout Group Is Invoking#
UI / Layout / Vertical Layout Group / Vertical Layout Group Is Invoking MethodName
Description#
Compares the Is Invoking method of Vertical Layout Group component to another value
Parameters#
| Name | Description |
|---|---|
| Vertical Layout Group | |
| Method Name |
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("Vertical Layout Group Is Invoking")]
[Category("UI/Layout/Vertical Layout Group/Is Invoking", "MethodName")]
[Description("Compares the Is Invoking method of Vertical Layout Group component to another value")]
[Image(typeof(IconVerticalLayoutGroup), ColorTheme.Type.TextLight)]
[Keywords("UI, Layout")]
[Parameter("Vertical Layout Group")]
[Parameter("Method Name")]
[Serializable]
public class GenConditionBool_VerticalLayoutGroup_CheckIsInvoking_1_StringMethodName : Condition
{
[SerializeField] private GetGameObject m_VerticalLayoutGroup = new GetGameObject(
new GenTypeGameObject_VerticalLayoutGroup()
);
[SerializeField] private GetString m_MethodName = new GetString();
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Is Invoking");
string parameters = $"({this.m_MethodName})";
return $"{this.m_VerticalLayoutGroup} {method}";
}
protected override bool Run(Args args)
{
VerticalLayoutGroup component = this.m_VerticalLayoutGroup.Get<VerticalLayoutGroup>(args);
if (component == null) return false;
bool value = component.IsInvoking(
(string) this.m_MethodName.Get(args)
);
return value;
}
}
}