Single-player setup

Connect one Unity camera, HUD and input user to a browser.

Set up the scene

Install the AppMana public Unity plugin. In Player Settings, set Active Input Handling to Input System Package (New) and restart the editor if prompted.

Scene
├─ Shared world
└─ Player
   ├─ RemotePlayableConfiguration
   ├─ Camera → Display 1
   │  └─ Canvas → Camera
   └─ EventSystem
One browser controls the scene through one camera.
  1. Add RemotePlayableConfiguration to the player root. Assign its camera, audio listener, Input Actions asset and each HUD CanvasScaler in the Inspector.
  2. Set each HUD Canvas to Screen Space - Camera and assign the slot camera. Replace its GraphicRaycaster with PerUserGraphicRaycaster and assign the same player configuration. Use PerUserPhysicsRaycaster on the camera for clickable world objects.
  3. Set the camera to Display 1 and include the HUD layer in its culling mask. Check that the camera preview includes the HUD.

Connect the input actions

Assign the same source asset to RemotePlayableConfiguration and InputSystemUIInputModule. Bind Point to <Pointer>/position (Pass Through, Vector2) and Click to <Pointer>/press (Pass Through, Button). Assign these actions to Point and Left Click on the module, and wire Navigate, Submit and Cancel for keyboard navigation. Set Pointer Behavior to All Pointers As Is.

Use one EventSystem with InputSystemUIInputModule. In gameplay scripts read the initialized RemotePlayableConfiguration.actions and enable your gameplay action map before listening for input.

Verify the stream

Open the stream in a browser. Click a HUD button, resize the viewport, and try keyboard navigation. Check that the HUD remains visible and each action runs once.

Set up a multiplayer scene