Set Horizontal Layout Group Run In Edit Mode#
UI / Layout / Horizontal Layout Group / Set Horizontal Layout Group Run In Edit Mode
Description#
Sets the Run In Edit Mode property of Horizontal Layout Group component
Parameters#
| Name | Description |
|---|---|
| Horizontal Layout Group | |
| 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("Set Horizontal Layout Group Run In Edit Mode")]
[Category("UI/Layout/Horizontal Layout Group/Run In Edit Mode")]
[Description("Sets the Run In Edit Mode property of Horizontal Layout Group component")]
[Image(typeof(IconHorizontalLayoutGroup), ColorTheme.Type.TextLight)]
[Keywords("UI, Layout")]
[Parameter("Horizontal Layout Group")]
[Parameter("Value")]
[Serializable]
public class GenInstructionBool_HorizontalLayoutGroup_SetRunInEditMode : Instruction
{
[SerializeField] private GetGameObject m_HorizontalLayoutGroup = new GetGameObject(
new GenTypeGameObject_HorizontalLayoutGroup()
);
[SerializeField] private GetBool m_Value = new GetBool();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Run In Edit Mode");
return $"{this.m_HorizontalLayoutGroup} {member} = {this.m_Value}";
}
protected override Awaitable Run(Args args)
{
HorizontalLayoutGroup component = this.m_HorizontalLayoutGroup.Get<HorizontalLayoutGroup>(args);
if (component == null) return Done;
component.runInEditMode = (bool) this.m_Value.Get(args);
return Done;
}
}
}