CrashReportHandler

class in UnityEngine.CrashReportHandler

Switch to Manual

Description

用于 CrashReporting 服务的引擎 API。

Static Variables

enableCaptureExceptions此布尔值字段将导致 CrashReportHandler 在设置为 true 时捕获异常。默认情况下,启用捕获异常被设为 true。
logBufferSizeThe Performance Reporting service will keep a buffer of up to the last X log messages (Debug.Log, etc) to send along with crash reports. The default is 10 log messages, the max is 50. Set this to 0 to disable capture of logs with your crash reports.

Static Functions

GetUserMetadataGet a custom crash report metadata field that has been set.
SetUserMetadataSet a custom metadata key-value pair to be included with crash reports.