docs.unity.cn
    Show / Hide Table of Contents

    Class DiagnosticEventCollectorSingleton

    Collects ResourceManager events and passed them on the registered event handlers. In editor play mode, events are passed directly to the ResourceManager profiler window. In player builds, events are sent to the editor via the EditorConnection API.

    Inheritance
    Object
    ComponentSingleton<DiagnosticEventCollectorSingleton>
    DiagnosticEventCollectorSingleton
    Inherited Members
    ComponentSingleton<DiagnosticEventCollectorSingleton>.Exists
    ComponentSingleton<DiagnosticEventCollectorSingleton>.Instance
    ComponentSingleton<DiagnosticEventCollectorSingleton>.DestroySingleton()
    Namespace: UnityEngine.ResourceManagement.Diagnostics
    Syntax
    public class DiagnosticEventCollectorSingleton : ComponentSingleton<DiagnosticEventCollectorSingleton>

    Properties

    Name Description
    PlayerConnectionGuid

    The guid used for the PlayerConnect messaging system.

    Methods

    Name Description
    GetGameObjectName()

    Retrieves the name of the object.

    PostEvent(DiagnosticEvent)

    Send a DiagnosticEvent event to all registered handlers

    RegisterEventHandler(Action<DiagnosticEvent>, Boolean, Boolean)

    Register for diagnostic events. If there is no collector, this will fail and return false.

    UnregisterEventHandler(Action<DiagnosticEvent>)

    Unregister event hander

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use