---
tags:
    - "Audio, Sound, Music, Ambient, Sfx"
---

# Audio Source Disable Gamepad Output

[Audio](../index.md) / [Audio Source](index.md) / **Audio Source Disable Gamepad Output**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

Returns the execution of Disable Gamepad Output method on the Audio Source component

## 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.Audio;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Audio Source Disable Gamepad Output")]
    [Category("Audio/Audio Source/Disable Gamepad Output")]
    [Description("Returns the execution of Disable Gamepad Output method on the Audio Source component")]
    
    [Image(typeof(IconAudioSource), ColorTheme.Type.Yellow)]
    [Keywords("Audio, Sound, Music, Ambient, Sfx")]
    
    [Serializable]
    public class GenTypeBool_AudioSource_DisableGamepadOutput_0 : TypeBool
    {
        [SerializeField] private GetGameObject m_AudioSource = new GetGameObject(
            new GenTypeGameObject_AudioSource()
        );
        
        public override bool Get(Args args)
        {
            AudioSource component = this.m_AudioSource.Get<AudioSource>(args);
            if (component == null) return default;
            
            bool value = (bool) component.DisableGamepadOutput();
            
            return value;
        }
        
        public override string ToString()
        {
            return $"{this.m_AudioSource} Disable Gamepad Output";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}


```

