Unity Game SDKv0.5.1Download SDK
RUEN

SDK API reference

Task ConnectAsync()async

Loads the launch manifest, opens the WebSocket, and authenticates the game.

await sdk.ConnectAsync();
Task ReadyAsync(string scene)async

Reports that the game is fully loaded and ready for the session.

event Action<VorivoxHit> HitReceivedevent

Raised for a physical target hit. The SDK dispatches it to Unity's main thread.

Task UpdateScoreAsync(VorivoxScore)async

Sends the current score state.

Task CompleteAsync(VorivoxResult)async

Completes the session. Duplicate calls are ignored.

Task TriggerLedAsync(string trigger)async

Runs a system lighting trigger.

v0.5 state and capabilities

MemberPurpose
CapabilitiesLauncher-confirmed LED, pause/resume and raw-event support
SessionStateIdle, Starting, Running, Paused, Stopping, Completed
WaitForSessionStartAsync()awaitable session start
LastErrorlast connection or transport error
MessageIgnoredinvalid or unknown inbound message