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

# Player Input Is Single Player

[Input](../index.md) / [Player Input](index.md) / **Player Input Is Single Player**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The Is Single Player static property of the Player Input class

## 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
{
    [Get]

    [Title("Player Input Is Single Player")]
    [Category("Input/Player Input/Is Single Player")]
    [Description("The Is Single Player static property of the Player Input class")]

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

    [Serializable]
    public class GenTypeBool_PlayerInput_IsSinglePlayer : TypeBool
    {

        public override bool GetPreview(GameObject source)
        {
            return PlayerInput.isSinglePlayer;
        }

        public override bool Get(Args args)
        {
            return PlayerInput.isSinglePlayer;
        }

        public override string ToString()
        {
            return $"Player Input Is Single Player";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
```

