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

Audio Source Gamepad Speaker Supports Output Type#

Audio / Audio Source / Audio Source Gamepad Speaker Supports Output Type

Description#

Compares the Gamepad Speaker Supports Output Type static method of Audio Source class to another value

Parameters#

Name Description
Output Type

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

namespace VisualScript.Runtime
{
    [Title("Audio Source Gamepad Speaker Supports Output Type")]
    [Category("Audio/Audio Source/Gamepad Speaker Supports Output Type")]
    [Description("Compares the Gamepad Speaker Supports Output Type static method of Audio Source class to another value")]
    
    [Image(typeof(IconAudioSource), ColorTheme.Type.Yellow)]
    [Keywords("Audio, Sound, Music, Ambient, Sfx")]
    
    [Parameter("Output Type")]
    
    [Serializable]
    public class GenConditionBool_AudioSource_CheckGamepadSpeakerSupportsOutputType_1 : Condition
    {
        [SerializeField] private GamepadSpeakerOutputType m_OutputType = default;
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Audio Source");
            string method = TextUtils.ThemeAsKeyword("Gamepad Speaker Supports Output Type");
            return $"{className} {method} ({this.m_OutputType})";
        }
        
        protected override bool Run(Args args)
        {
            bool value = AudioSource.GamepadSpeakerSupportsOutputType(
                this.m_OutputType
            );
            
            return value;
        }
    }
}

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