docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DestroyAllSystemsAndLogException

    DestroyAllSystemsAndLogException()

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

    Declaration
    [Obsolete("This function now takes an out bool parameter to report if any exceptions were logged.", false)]
    public void DestroyAllSystemsAndLogException()
    Exceptions
    Type Condition
    ArgumentException

    Thrown if any of the World's systems are currently executing.

    DestroyAllSystemsAndLogException(out bool)

    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
    Type Name Description
    bool 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.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if any of the World's systems are currently executing.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)