# Hello, I'm trying to learn how to import the anti-cheat into a game client. I was followed the steps on the tutorial, but i get the below error when i start the game to see if it initializes correctly. 

**URL:** <https://forums.unrealengine.com/t/hello-im-trying-to-learn-how-to-import-the-anti-cheat-into-a-game-client-i-was-followed-the-steps-on-the-tutorial-but-i-get-the-below-error-when-i-start-the-game-to-see-if-it-initializes-correctly/2858491>\
**Category:** Developer Portal\
**Tags:** epic-online-services, question\
**Created:** [October 23, 2026, 2:42am UTC](https://forums.unrealengine.com/t/hello-im-trying-to-learn-how-to-import-the-anti-cheat-into-a-game-client-i-was-followed-the-steps-on-the-tutorial-but-i-get-the-below-error-when-i-start-the-game-to-see-if-it-initializes-correctly/2858491 "2026-10-23T02:42:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 23, 2026, 2:42am UTC](https://forums.unrealengine.com/t/hello-im-trying-to-learn-how-to-import-the-anti-cheat-into-a-game-client-i-was-followed-the-steps-on-the-tutorial-but-i-get-the-below-error-when-i-start-the-game-to-see-if-it-initializes-correctly/2858491/1 "2026-10-23T02:42:05Z")

</div>

Error:

NullReferenceException: Object reference not set to an instance of an object

Epic.OnlineServices.Platform.PlatformInterface.Initialize (Epic.OnlineServices.Platform.InitializeOptions& options) (at Assets/Scripts/EOS/Generated/Platform/PlatformInterface.cs:164)

EOSSDKManager.InitializeEOS () (at Assets/Scripts/EOS/EOSSDKManager.cs:69)

EOSSDKManager.Awake () (at Assets/Scripts/EOS/EOSSDKManager.cs:24)

---

<div class="post-metadata">

**Author:** ![Clayton\_V](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clayton\_V](https://forums.unrealengine.com/u/Clayton_V)\
**Post date:** [October 23, 2026, 8:44am UTC](https://forums.unrealengine.com/t/hello-im-trying-to-learn-how-to-import-the-anti-cheat-into-a-game-client-i-was-followed-the-steps-on-the-tutorial-but-i-get-the-below-error-when-i-start-the-game-to-see-if-it-initializes-correctly/2858491/2 "2026-10-23T08:44:31Z")

</div>

Thanks for the report. The exception is thrown inside the managed

PlatformInterface.Initialize call, before any SDK result is returned. Epic’s public Unity guide recommends the EOS Plugin for Unity. To narrow down the cause, please send or validate the following:

1. Your EOS SDK / plugin version and Unity version.
2. Whether you use the EOS Plugin for Unity or call the SDK directly. If you use the plugin, validate that all the fields correctly match your product’s IDs and secrets.
3. That the ProductName and ProductVersion values at EOSSDKManager.cs:69. Both must be non-empty, at most 64 bytes, and ASCII 32–127.
4. Whether the native EOS library for your target platform is in your Assets/Plugins folder and loads at startup. A null native handle can surface as this NRE.
5. Whether Initialize runs more than once, and whether the options object can be null.

---

<div class="post-metadata">

**Author:** ![Clayton\_V](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clayton\_V](https://forums.unrealengine.com/u/Clayton_V)\
**Post date:** [October 27, 2026, 1:49pm UTC](https://forums.unrealengine.com/t/hello-im-trying-to-learn-how-to-import-the-anti-cheat-into-a-game-client-i-was-followed-the-steps-on-the-tutorial-but-i-get-the-below-error-when-i-start-the-game-to-see-if-it-initializes-correctly/2858491/3 "2026-10-27T13:49:41Z")

</div>

Thanks, that helps narrow it down.

In this case the NullReferenceException is most likely coming from the EOS C# bindings not being hooked to the native library when the game runs in the editor. In Editor, the bindings are dynamic, which means they are only set when Epic.OnlineServices.Bindings.Hook is called, until then, Initialize will throw the above exception.

Fix: load the EOS DLL and hook it before you call Initialize. Add these to EOSSDKManager:

using System;

using [System.IO](http://System.IO);

using System.Runtime.InteropServices;

using UnityEngine;

[DllImport(“Kernel32.dll”)] static extern IntPtr LoadLibrary(string fileName);

[DllImport(“Kernel32.dll”)] static extern IntPtr GetProcAddress(IntPtr module, string procName);

[DllImport(“Kernel32.dll”)] static extern int FreeLibrary(IntPtr module);

IntPtr eosLib = LoadLibrary(Path.Combine(Application.dataPath, “Plugins”, “x86\_64”, “EOSSDK-Win64-Shipping.dll”));

if (eosLib == IntPtr.Zero) throw new Exception(“Failed to load the EOS SDK DLL”);

Epic.OnlineServices.Bindings.Hook(eosLib, GetProcAddress);

Call this before PlatformInterface.Initialize. Adjust the DLL path if your file is somewhere else. On application quit, after PlatformInterface.Shutdown(), call Epic.OnlineServices.Bindings.Unhook() and then FreeLibrary(eosLib).

Both the C# files and the DLL must come from the same SDK version. If Hook throws a DynamicBindingException, that is the first thing to check.

If the NullReferenceException still occurs after this change, send me the full stack trace, your EOSSDKManager.cs, and the Editor log from the run.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 23, 2026, 8:02pm UTC](https://forums.unrealengine.com/t/hello-im-trying-to-learn-how-to-import-the-anti-cheat-into-a-game-client-i-was-followed-the-steps-on-the-tutorial-but-i-get-the-below-error-when-i-start-the-game-to-see-if-it-initializes-correctly/2858491/4 "2026-10-23T20:02:03Z")

</div>

So, the game is older and was compiled using an older version, I don’t believe they’ve updated it since its a small hobbyist project. Also, the head dev wanted me to implement from scratch to learn about it.

1. EOS: v1.19.1.2, Unity: 6000.0.56f1
2. SDK values I do have them in the script i copied them from the project variables in portal.
3. Product name: UberUnityClient, Version: 1.0
4. If you mean if the EOSSDK-Win64-Shipping.dll i have that in /Assets/Plugins/x86\_64
5. I do not believe it does run more than once. It is stopped on first instance.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 27, 2026, 7:03pm UTC](https://forums.unrealengine.com/t/hello-im-trying-to-learn-how-to-import-the-anti-cheat-into-a-game-client-i-was-followed-the-steps-on-the-tutorial-but-i-get-the-below-error-when-i-start-the-game-to-see-if-it-initializes-correctly/2858491/5 "2026-10-27T19:03:00Z")

</div>

That fixed it, Thanks for the help!
