I’m in early development of my game, and I’m preparing to send it out for some friends to test it. I know there will be problems, crashes etc. and have set it up so that every Log, Warning and Exception should be sent to a server, where I write it to a log file that I can check out when they report a problem.
void Start()
{
DontDestroyOnLoad(gameObject);
Application.RegisterLogCallbackThreaded(LogHandler);
}
The problem is that for some reason after a scene change it suddenly stops calling my LogHandler.
I have tried to register it again after a scene change during OnLevelWasLoaded, but it still doesn’t work.
Is there a way to make it survive a scene/level change?