Player Input Is Single Player#
Input / Player Input / Player Input Is Single Player
Can Read
Cannot Write
Description#
The Is Single Player static property of the Player Input class
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
{
[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;
}
}