Okay, let's break down this warning message from Unreal Engine's OpenXR implementation.
What the Warning Means:
- Source: The warning is coming from the HMD (Head-Mounted Display) logging system, specifically related to your OpenXR setup.
- Core Problem: You are missing a crucial configuration asset (
UPlayerMappableInputConfig) in your Project Settings for OpenXR Input.
- Consequence: Without this configuration, the OpenXR runtime (the software layer that runs your VR/AR headset, like SteamVR, Oculus Runtime, WMR Portal) will not be able to see or understand the input actions your application is trying to use. This can lead to:
- Input not working correctly or predictably across different OpenXR devices.
- Users not being able to see or customize controller bindings within the runtime's overlay or settings.
- Potential issues with action pose synchronization (how the runtime tells the application the position/rotation of the controller based on the action).
- Recommendation: The warning explicitly states that the old way of defining input for XR (using the generic "Action/Axis mappings" in the main Input project settings) is deprecated and you should switch to using the Enhanced Input system. The
UPlayerMappableInputConfig is part of the Enhanced Input system.
In simpler terms: Your project isn't properly telling the VR/AR system (OpenXR) which buttons and sticks correspond to your game's actions (like "Jump", "Move Forward", "Grab"). It's using an outdated method, and the recommended method (Enhanced Input) requires a specific setup file (UPlayerMappableInputConfig) that is missing.
Why this is important for OpenXR:
OpenXR uses an "Action-based" input system. Your application defines abstract actions (e.g., jump_action, move_forward_action). The OpenXR runtime then handles mapping these abstract actions to the specific buttons, triggers, or sticks available on the user's particular controller (e.g., on a Quest controller, jump_action might map to the 'A' button; on an Index controller, it might map to the 'B' button or even a gesture).
The UPlayerMappableInputConfig is the mechanism within Unreal Engine's Enhanced Input that helps communicate your project's actions and their suggested default bindings to the OpenXR runtime, allowing this action-based system to work correctly.
How to Fix It:
The solution involves transitioning to Enhanced Input and configuring the OpenXR project settings.
-
Enable Enhanced Input Plugin:
- Go to
Edit -> Plugins.
- Search for "Enhanced Input".
- Make sure "Enhanced Input" and "Enhanced Input Utilities" (if available/needed) are enabled.
- Restart the editor if prompted.
-
Set up Input using Enhanced Input:
- Create
UInputAction assets for your desired actions (e.g., IA_Jump, IA_Move).
- Create
UInputMappingContext assets to define how these actions map to specific keys/buttons (e.g., IMC_DefaultVR).
- Set up your Pawn/Character to use these Input Mapping Contexts (typically added to the Local Player's Subsystem).
-
Create and Configure UPlayerMappableInputConfig:
- In the Content Browser, right-click ->
Input -> Player Mappable Input Config. Give it a name (e.g., IMC_VR_PlayerMapConfig).
- Open this new asset.
- In the Details panel, find the "Input Mapping Contexts" section.
- Add an entry and select your primary Input Mapping Context for VR (e.g.,
IMC_DefaultVR). You can add others if needed (e.g., for UI navigation).
- Save the asset.
-
Assign the Config in OpenXR Settings:
- Go to
Edit -> Project Settings.
- Scroll down to
Plugins -> OpenXR.
- Expand the "Input" section.
- Find the setting for "Player Mappable Input Config Class" (or similarly named setting, it might be a direct asset reference depending on engine version, but the concept is the same).
- Select or assign the
UPlayerMappableInputConfig asset you created (e.g., IMC_VR_PlayerMapConfig).
-
Remove or Migrate Old Input:
- Once Enhanced Input is set up and working, you should remove the old Action/Axis mappings related to XR from the main
Engine -> Input section in Project Settings to avoid confusion and rely solely on Enhanced Input.
In Summary:
The warning is guiding you towards the recommended, modern way of handling input for OpenXR in Unreal Engine (Enhanced Input) and telling you that you've missed the final step of linking the necessary configuration asset (UPlayerMappableInputConfig) in the OpenXR project settings. Follow the steps above to transition your input setup.