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

Player Input Is Single Player#

Input / Player Input / Player Input Is Single Player

Description#

Compares the Is Single Player static property of Player Input class to another value

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

namespace VisualScript.Runtime
{
    [Title("Player Input Is Single Player")]
    [Category("Input/Player Input/Is Single Player")]
    [Description("Compares the Is Single Player static property of Player Input class to another value")]

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

    [Serializable]
    public class GenConditionBool_PlayerInput_CheckIsSinglePlayer : Condition
    {

        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Player Input");
            string member = TextUtils.ThemeAsKeyword("Is Single Player");
            return $"{className} {member}";
        }

        protected override bool Run(Args args)
        {
            return PlayerInput.isSinglePlayer;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.