Skip to content
Ability

DocsIntegration with Game Engines

Integration with Game Engines

Drop Ability into a game loop the same way you would in a notebook: open a session, read a block, map channels to gameplay.

Unity

Add the Ability C# package, then read a block each Update or from a background thread.

Setup

Setup uses the same Ability session flow: construct with a device id, prepare, start, read a block, then stop. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

dotnet add package Ability

Examples

Examples uses the same Ability session flow: construct with a device id, prepare, start, read a block, then stop. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

void Update() {
    var block = session.Read(64);
    ApplyToGameplay(block);
}

Fixing errors

Fixing errors uses the same Ability session flow: construct with a device id, prepare, start, read a block, then stop. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Unreal Engine

Call the C++ Session from an actor tick, or wrap reads in an async task so the game thread stays free.

CryEngine

Same pattern as other engines: native Session, then copy a block into gameplay systems.