Grid Layout Group Stop Coroutine#
UI / Layout / Grid Layout Group / Grid Layout Group Stop Coroutine MethodName
Description#
Executes the Stop Coroutine method on the Grid 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("Grid Layout Group Stop Coroutine")]
[Category("UI/Layout/Grid Layout Group/Stop Coroutine", "MethodName")]
[Description("Executes the Stop Coroutine method on the Grid Layout Group component")]
[Image(typeof(IconGridLayoutGroup), ColorTheme.Type.TextLight)]
[Keywords("UI, Layout")]
[Parameter("Method Name")]
[Serializable]
public class GenInstructionGridLayoutGroup_StopCoroutine_1_StringMethodName : Instruction
{
[SerializeField] private GetGameObject m_GridLayoutGroup = new GetGameObject(
new GenTypeGameObject_GridLayoutGroup()
);
[SerializeField] private GetString m_MethodName = new GetString();
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Stop Coroutine");
return $"{this.m_GridLayoutGroup} {method} ({this.m_MethodName})";
}
protected override Awaitable Run(Args args)
{
GridLayoutGroup component = this.m_GridLayoutGroup.Get<GridLayoutGroup>(args);
if (component == null) return Done;
component.StopCoroutine(
(string) this.m_MethodName.Get(args)
);
return Done;
}
}
}