Vertical Layout Group Stop Coroutine#
UI / Layout / Vertical Layout Group / Vertical Layout Group Stop Coroutine MethodName
Description#
Executes the Stop Coroutine method on the Vertical Layout Group component
Parameters#
| Name | Description |
|---|---|
| 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 Stop Coroutine")]
[Category("UI/Layout/Vertical Layout Group/Stop Coroutine", "MethodName")]
[Description("Executes the Stop Coroutine method on the Vertical Layout Group component")]
[Image(typeof(IconVerticalLayoutGroup), ColorTheme.Type.TextLight)]
[Keywords("UI, Layout")]
[Parameter("Method Name")]
[Serializable]
public class GenInstructionVerticalLayoutGroup_StopCoroutine_1_StringMethodName : Instruction
{
[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("Stop Coroutine");
return $"{this.m_VerticalLayoutGroup} {method} ({this.m_MethodName})";
}
protected override Awaitable Run(Args args)
{
VerticalLayoutGroup component = this.m_VerticalLayoutGroup.Get<VerticalLayoutGroup>(args);
if (component == null) return Done;
component.StopCoroutine(
(string) this.m_MethodName.Get(args)
);
return Done;
}
}
}