docs.unity.cn
    Show / Hide Table of Contents

    Class DiagnosticEventCollector

    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
    DiagnosticEventCollector
    Namespace: UnityEngine.ResourceManagement.Diagnostics
    Syntax
    public class DiagnosticEventCollector : MonoBehaviour

    Properties

    Name Description
    PlayerConnectionGuid

    The guid used for the PlayerConnect messaging system.

    Methods

    Name Description
    FindOrCreateGlobalInstance()

    Retrieves the global event collector. A new one is created if needed.

    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