Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

World.DestroyAllSystemsAndLogException

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Obsolete This function now takes an out bool parameter to report if any exceptions were logged.

Declaration

public void DestroyAllSystemsAndLogException();

Description

Destroy all system instances in the World. Any errors encountered during individual system destruction will be logged to the console.


Declaration

public void DestroyAllSystemsAndLogException(out bool loggedException);

Parameters

Parameter Description
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.

Description

Destroy all system instances in the World. Any errors encountered during individual system destruction will be logged to the console.