文档

Unity Engine

Download Unity

Unity Engine

DestroyAllSystemsAndLogException

Destroy all system instances in the World. Any errors encountered during individual system destruction will be logged to the console.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

DestroyAllSystemsAndLogException()

Destroy all system instances in the World. Any errors encountered during individual system destruction will be logged to the console.
警告
Deprecated. This function now takes an out bool parameter to report if any exceptions were logged.
public void DestroyAllSystemsAndLogException()

DestroyAllSystemsAndLogException(bool)

Destroy all system instances in the World. Any errors encountered during individual system destruction will be logged to the console.
public void DestroyAllSystemsAndLogException(out bool loggedException)

Parameters

loggedException

If one or more exceptions were logged while destroying systems, this value will be set to true. This allows callers to detect whether any errors were encountered. If no exceptions were logged, this value will be set to false.