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.
Inherited Members
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 |