---
tags:
    - "Input, Player, Controls, Local, Multiplayer, Co-op"
---

# Player Input Never Auto Switch Control Schemes

[Input](../index.md) / [Player Input](index.md) / **Player Input Never Auto Switch Control Schemes**

## Description

Compares the Never Auto Switch Control Schemes property of Player Input component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Player Input |  |

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

namespace VisualScript.Runtime
{
    [Title("Player Input Never Auto Switch Control Schemes")]
    [Category("Input/Player Input/Never Auto Switch Control Schemes")]
    [Description("Compares the Never Auto Switch Control Schemes property of Player Input component to another value")]

    [Image(typeof(IconBoltOutline), ColorTheme.Type.Blue)]
    [Keywords("Input, Player, Controls, Local, Multiplayer, Co-op")]

    [Parameter("Player Input")]

    [Serializable]
    public class GenConditionBool_PlayerInput_CheckNeverAutoSwitchControlSchemes : Condition
    {
        [SerializeField] private GetGameObject m_PlayerInput = new GetGameObject(
            new GenTypeGameObject_PlayerInput()
        );

        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Never Auto Switch Control Schemes");
            return $"{this.m_PlayerInput} {member}";
        }

        protected override bool Run(Args args)
        {
            PlayerInput component = this.m_PlayerInput.Get<PlayerInput>(args);
            if (component == null) return false;

            return component.neverAutoSwitchControlSchemes;
        }
    }
}
```

