---
tags:
    - "UI, User, Interface, Checkbox"
---

# Toggle Group Notify Toggle On

[UI](../../index.md) / [Interaction](../index.md) / [Toggle Group](index.md) / **Toggle Group Notify Toggle On**

## Description

Executes the Notify Toggle On method on the Toggle Group component

## Parameters

| Name | Description |
| :--- | :---------- |
| Toggle |  |
| Send Callback |  |

## Code

```cs
// <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 Notify Toggle On")]
    [Category("UI/Interaction/Toggle Group/Notify Toggle On")]
    [Description("Executes the Notify Toggle On method on the Toggle Group component")]
    
    [Image(typeof(IconToggleGroup), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface, Checkbox")]
    
    [Parameter("Toggle")]
    [Parameter("Send Callback")]
    
    [Serializable]
    public class GenInstructionToggleGroup_NotifyToggleOn_2 : Instruction
    {
        [SerializeField] private GetGameObject m_ToggleGroup = new GetGameObject(
            new GenTypeGameObject_ToggleGroup()
        );
        
        [SerializeField] private GetGameObject m_Toggle = new GetGameObject();
        
        [SerializeField] private GetBool m_SendCallback = new GetBool();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Notify Toggle On");
            return $"{this.m_ToggleGroup} {method} ({this.m_Toggle}, {this.m_SendCallback})";
        }
        
        protected override Awaitable Run(Args args)
        {
            ToggleGroup component = this.m_ToggleGroup.Get<ToggleGroup>(args);
            if (component == null) return Done;
            
            component.NotifyToggleOn(
                (Toggle) this.m_Toggle.Get<Toggle>(args),
                (bool) this.m_SendCallback.Get(args)
            );
            
            return Done;
        }
    }
}


```

