Easy Asset Search
Share InputSystem Device Asset Image Purchase on the Asset Store » * This is an affiliate link, meaning we may earn a small commission if you purchase something through it, at no extra cost.

Share InputSystem Device

The InputSystem allows sharing a single device with multiple players. Want easy to understand code of how? This package contains 7 setups showing the bare minimum setup. Each setup builds on the last.
Category:
ToolsInput-management
Developer:
ShawnFeatherly
Price:
$15
Rating:
Not enough ratings.
Favorites:
0
Download Size:
328.69 KB
Current Version:
0.0.7
Original Release:
Dec 17, 2024
Last Update:
Jan 14, 2025
Supported Unity Version:
2022.3.22 or higher
Description:

This package solves supporting more than one player per device. Use Unity's InputSystem.PlayerInput even when a device is used by multiple players.

Try out a WebGL sample!

  • Allows any device to support any number of players; i.e. 4 players on a keyboard, 2 on a gamepad, etc.
  • Works with Unity's default PlayerInput component.
  • Works with Unity's player join/left system.
  • Works with Unity's button rebinding system.

Includes 7 game-kit style sample scenes demonstrating:

  • Bare minimum to achieve functionality
  • Multiple players can individually navigate over a single UI canvas.
  • Rebinding buttons based off control scheme or player index.
  • Splitting WASD and Arrow keys. Full runthrough of this sample is at https://youtu.be/5uuN1jhuOYo

Each setup builds on the last, helping you isolate only what's needed. Then copy/paste only what's needed.

Technical Details:

# Overview

UnityEngine.InputSystem allows you to share a single device with multiple players. (see https://docs.unity3d.com/Packages/com.unity.inputsystem@1.6/manual/PlayerInput.html ). Enabling setups such as 2 players using a single keyboard.

However, it's not easy to setup. Especially if you want to support using the InputSystems control rebinding and/or the ability to create the player only when they press a button on their shared section of the device.

# Functionalities included

- InputSystem demonstration of single device shared with multiple players. Keyboard in the example, but the setup works with any device.

- InputSystem prefabs for rebinding controls on shared devices.

- Shared device setup shows players able to join and drop at runtime by pressing a key on bound sections of the device.

# Dependencies

- This package requires including UnityEngine.InputSystem.

- Some scenes need TMPro (TextMeshPro) essentials in your project.


continue »

Similar Packages