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 !

有帮助吗?

解决方案

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.
    }
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top