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;
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.