docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WaitForCompletion

    WaitForCompletion(int)

    Wait for object load in main thread. This will force synchronous loading and may cause performance issues.

    Declaration
    public bool WaitForCompletion(int timeoutMs = 0)
    Parameters
    Type Name Description
    int timeoutMs

    The number of milliseconds to wait. If set to 0, the load will either complet or fail before returning.

    Returns
    Type Description
    bool

    True if the load completes within the timeout.

    In This Article
    • WaitForCompletion(int)
    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)