Pergunta

I've googled this but, nothing useful came up. It's really simple, i'm looking for a service that supports Unity games distribution and usage tracking, with crash reports and whatnot, something like TestFlight or HockeyApp but for Unity games!

Thanks in advance !

Foi útil?

Solução

If you search for "analytics" in the Unity Asset Store there are some systems that support Unity PC. These can be used to track usage, and some track errors too. Usually analytics systems support attaching extra data to an event, and you could use this to send uncaught exceptions to the service.

Application.RegisterLogCallback can be used for this.

void OnEnable() {
    Application.RegisterLogCallback(ErrorReporter);
}

void OnDisable() {
    Application.RegisterLogCallback(null);
}

void ErrorReporter (string logString, string stackTrace, LogType type) {
    if (type == LogType.Assert || type == LogType.Error || type == LogType.Exception) {
        // send analytics message with logString and/or stackTrace attached.
    }
}
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top