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
DiagnosticEventCollectorSingleton
Inherited Members
Namespace: UnityEngine.ResourceManagement.Diagnostics
Assembly: Unity.ResourceManager.dll
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>, bool, bool) | Register for diagnostic events. If there is no collector, this will fail and return false. |
UnregisterEventHandler(Action<DiagnosticEvent>) | Unregister event hander |