Toggle Group Any Toggles On#
UI / Interaction / Toggle Group / Toggle Group Any Toggles On
Description#
Compares the Any Toggles On method of Toggle Group component to another value
Parameters#
| Name | Description |
|---|---|
| Toggle 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("Toggle Group Any Toggles On")]
[Category("UI/Interaction/Toggle Group/Any Toggles On")]
[Description("Compares the Any Toggles On method of Toggle Group component to another value")]
[Image(typeof(IconToggleGroup), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface, Checkbox")]
[Parameter("Toggle Group")]
[Serializable]
public class GenConditionBool_ToggleGroup_CheckAnyTogglesOn_0 : Condition
{
[SerializeField] private GetGameObject m_ToggleGroup = new GetGameObject(
new GenTypeGameObject_ToggleGroup()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Any Toggles On");
string parameters = $"()";
return $"{this.m_ToggleGroup} {method}";
}
protected override bool Run(Args args)
{
ToggleGroup component = this.m_ToggleGroup.Get<ToggleGroup>(args);
if (component == null) return false;
bool value = component.AnyTogglesOn();
return value;
}
}
}