Pre-release Sign-up is not open yet. Platform verification and the signed client download are in development. See what is available
Guide · SDK 0.14

Adding Obscurity to your game

The client SDK for Windows x64 games, packaged for Unity, Unreal Engine and plain C or C++, and the installer that puts Obscurity's service and driver on players' PCs.

What you get

PackageFor
com.obscurity.sdk-0.14.1.tgzUnity, Windows x64 player and editor. Built and run with Unity 6 (6000.6), Mono and IL2CPP; made for 2021.3 or later, older versions not tried
Obscurity-Unreal-0.14.1.zipUnreal Engine 5, Win64 (built and tested with 5.8)
obscurity-sdk-0.14.1.zipAny other engine: obscurity.h, the import library and obscurity.dll
obscurity_setup.exePlayers' PCs: Obscurity's service and kernel driver

Your account gets the packages for the current SDK version. The SDK holds no secret: never put a server key (obs_sk_...) in a game client.

Unity

  1. Window › Package Manager › + › Add package from tarball, and choose com.obscurity.sdk-0.14.1.tgz. The native library is set up for the Windows x64 player and editor. Unity notes that the package has no signature; that is expected before release.
  2. Import the Session starter sample, put ObscuritySessionStarter on an object in your first scene, and fill in your game id from the console.
  3. Subscribe to JoinTokenReady (and Refused, to show the player its message) and send the token to your game server when the player connects. The server verifies it (Server API) before it admits the player.

StartSession, JoinToken and EndSession make network requests and can block for seconds: call them off the main thread (the sample uses Task.Run). GetState and GetProtection never block.

Unreal Engine

  1. Unzip Obscurity-Unreal-0.14.1.zip into your project's Plugins folder (you get Plugins/Obscurity) and enable it.
  2. Add "Obscurity" to your game module's dependencies in its .Build.cs.
  3. #include "ObscuritySdk.h". Call the SDK only when ObscuritySdkLoaded() is true; the plugin copies obscurity.dll next to your binaries when you build or package.
  4. Start a session with obs_create and obs_start_session on a background thread, then obs_join_token when connecting; the server side checks the token in PreLogin with the server API.

Other engines (C or C++)

Link obscurity.lib, ship obscurity.dll next to your executable, and include obscurity/obscurity.h. The header documents every call: what it does, what it sends, and what it changes on the PC.

Players' PCs

Ship obscurity_setup.exe with your game, or link to it. It needs administrator rights once.

  • Run it from your own installer with /quiet (no window; exit code 0 on success), or let players run it, in which case it asks first.
  • It installs to %ProgramFiles%\Obscurity and appears in Windows' installed apps, where it can be uninstalled. Boot, firmware and security settings are never changed.
  • The driver loads only while a protected game runs and is unloaded afterwards. Obscurity keeps itself up to date: a newer installer signed by Obscurity is installed between games.

Without it, your game still runs and starts sessions; protection reports unavailable with the reason, and your game's tier settings decide whether that matters.