文档

Unity Engine

Unity Engine

buildWithCodeCoverage

Enables Code Coverage in the Player.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool buildWithCodeCoverage { get; set; }

Remarks

When this option is enabled, the Player collects code coverage data during execution. This data can be used to identify untested code paths and improve test coverage.