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 Split Screen Index#

Input / Player Input / Player Input Split Screen Index

  • Can Read

  • Cannot Write

Description#

The Split Screen Index property of the Player Input component

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 Split Screen Index")]
    [Category("Input/Player Input/Split Screen Index")]
    [Description("The Split Screen Index property of the Player Input component")]

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

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

        public override double GetPreview(GameObject source)
        {
            GameObject instance = this.m_PlayerInput.GetPreview(source);
            if (instance == null) return default;

            PlayerInput component = instance.GetComponent<PlayerInput>();
            return component != null ? component.splitScreenIndex : default;
        }

        public override double Get(Args args)
        {
            PlayerInput instance = this.m_PlayerInput.Get<PlayerInput>(args);
            return instance != null
                ? instance.splitScreenIndex
                : default;
        }

        public override string ToString()
        {
            return $"{this.m_PlayerInput} Split Screen Index";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.