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