docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PerThreadData

    Class that is used by logging to save some per-thread data for logging management. Usually stores thread's LoggerHandle that is currently used

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

    Properties

    ThreadLoggerHandle

    Current LoggerHandle in this thread. Used internally by mirror struct's implicit constructors

    Declaration
    public static LoggerHandle ThreadLoggerHandle { get; set; }
    Property Value
    Type Description
    LoggerHandle

    Methods

    Initialize()

    Initialize static data

    Declaration
    [BurstDiscard]
    public static void Initialize()

    Reset()

    Reset all per thread data

    Declaration
    public static void Reset()
    In This Article
    Back to top
    Copyright © 2025 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)