apple / apple/unityplugins

Expose playerIndex / DeviceID in GameController framework for Wwise Motion support in Unity

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
feature request Plug-in - CoreHaptics
Dominant language
C#
Stars
982
Forks
248
Avg merge
6d 12h
Merged PRs (30d)
2

Description

**Is your feature request related to a problem? Please describe.**
We cannot use Wwise Motion on Apple platforms for haptics due to missing `playerIndex` / `DeviceID` exposure in the Apple Unity Plug-ins.

See Wwise Motion [documentation](https://www.audiokinetic.com/en/public-library/2024.1.9_8920/?source=SDK&id=integrating_elements_motion.html) that requires for all Apple platforms to set the `DeviceID` even for single player games. Otherwise Wwise Motion is not playing any haptics / rumble on Apple platforms.

We use it on all other platforms like Windows and consoles. Thus, the need to have that covered to bring also the same experience to Apple platforms.

**Describe the solution you'd like**
Being able to set the `playerIndex` through C# functions / `Get/Set` methods within Unity and then to retrieve the `DeviceID` needed for Wwise Motion.

**Describe alternatives you've considered**
Shipping on Apple platforms without haptics / rumble support.

**Additional context**
Submitted Apple Feedback ID: FB18696265

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the GameController framework and the Apple Unity Plug-ins documentation linked in the issue, then trace how player input is exposed through C# on Apple platforms. The work is done when Unity callers can set playerIndex and retrieve the DeviceID required by Wwise Motion for Apple haptics.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.