public void TestSelectedObjectAccess()
 {
     Assert.DoesNotThrow(() =>
     {
         DiagnosticsEventData eventData = new DiagnosticsEventData(EventSystem.current);
         eventData.Initialize(null);
         Assert.IsNull(eventData.selectedObject);
     });
 }
        private void RaiseDiagnosticsChanged()
        {
            eventData.Initialize(this, Visible, ShowCpu, ShowFps, ShowMemory);

            // Manually send it to our diagnostics handler, no matter who's listening.
            diagnosticsHandler?.OnDiagnosticSettingsChanged(eventData);

            HandleEvent(eventData, OnDiagnosticsChanged);
        }
Esempio n. 3
0
        private void RaiseDiagnosticsChanged()
        {
            eventData.Initialize(this,
                                 visible: Visible,
                                 showCpu: ShowCpu,
                                 showFps: ShowFps,
                                 showMemory: ShowMemory
                                 );

            HandleEvent(eventData, OnDiagnosticsChanged);
        }
 private void RaiseDiagnosticsChanged()
 {
     eventData.Initialize(this);
     HandleEvent(eventData, OnDiagnosticsChanged);
 }