Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Toggle Group Any Toggles On#

UI / Interaction / Toggle Group / Toggle Group Any Toggles On

  • Can Read

  • Cannot Write

Description#

Returns the execution of Any Toggles On method on the Toggle Group component

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
{
    [Get]
    
    [Title("Toggle Group Any Toggles On")]
    [Category("UI/Interaction/Toggle Group/Any Toggles On")]
    [Description("Returns the execution of Any Toggles On method on the Toggle Group component")]
    
    [Image(typeof(IconToggleGroup), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface, Checkbox")]
    
    [Serializable]
    public class GenTypeBool_ToggleGroup_AnyTogglesOn_0 : TypeBool
    {
        [SerializeField] private GetGameObject m_ToggleGroup = new GetGameObject(
            new GenTypeGameObject_ToggleGroup()
        );
        
        public override bool Get(Args args)
        {
            ToggleGroup component = this.m_ToggleGroup.Get<ToggleGroup>(args);
            if (component == null) return default;
            
            bool value = (bool) component.AnyTogglesOn();
            
            return value;
        }
        
        public override string ToString()
        {
            return $"{this.m_ToggleGroup} Any Toggles On";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.