docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ThreadUtility

    Utility class that determines if you are running on the main thread or not.

    Inheritance
    object
    ThreadUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro
    Assembly: Unity.SimulationPro.Capture.dll
    Syntax
    public static class ThreadUtility

    Methods

    IsMainThread()

    Returns true if the calling code is executing on the Unity main thread.

    Declaration
    public static bool IsMainThread()
    Returns
    Type Description
    bool

    true if the current thread is the main thread; otherwise, false.

    In This Article
    Back to top
    Copyright © 2026 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)