평점 만점의 리뷰가 11,000개 이상

8만 5천명 이상의 리뷰

10만명 이상의 포럼 멤버가 선호하는 에셋

유니티에서 모더레이팅하는 모든 에셋

도구
입출력 관리
1/5
The InputSystem allows sharing a single device with multiple players. Yet makes it a head scratching code writing challenge. With this package, it becomes just 2 steps.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2022.3.22f1
Compatible
Not compatible
Not compatible
설명

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


What are the 2 steps!?

1. Matches what you may have seen in multiple "split keyboard" tutorials. Setup your `\*.inputactions` asset to support a different control scheme for each player. It doesn't matter if there are multiple control schemes for a single device.

2. Add the `PlayerInputCanShareDevice.cs` component to the `PlayerInput` prefab that is referenced by your `PlayerInputManager`.


That's it! PlayerInputCanShareDevice.cs handles correctly leveraging what you setup in '\*.inputactions` to correctly split the device with as many players as you'd like. All while being able to use Unity's PlayerInput and PlayerInputManager for everything else.


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.
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 and Gamepad are shown in the example. 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.

Share InputSystem Device

(평가가 충분하지 않습니다)
$15
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
라이선스
파일 크기
375.6 KB
최신 버전
0.0.8
최신 릴리스 날짜
2025년 4월 17일
원본 Unity 버전
2022.3.22
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
언어
어필리에이트 프로그램
멤버십링크 생성기어필리에이트 ID
Feedback
파트너 프로그램
협력사
USD
EUR
Copyright © 2025 Unity Technologies
모든 가격은 부가가치세를 제외한 금액입니다.
USD
EUR
$15