Version: 2023.1

ForcedCrashCategory

enumeration

切换到手册

描述

指定调用 ForceCrash() 时导致的崩溃类别。

变量

AccessViolation通过执行无效的内存访问导致崩溃。按如下方式在每个平台上执行无效的内存访问:
FatalError使用 Unity 的原生致命错误实现来导致崩溃。
Abort通过调用 abort() 函数导致崩溃。
PureVirtualFunction通过调用纯虚函数引发异常来导致崩溃。
MonoAbortCause a crash by calling the abort() function within the Mono dynamic library.