/// <inheritdoc />
        public override void Initialize()
        {
            if (!Application.isPlaying)
            {
                return;
            }

            MixedRealityDiagnosticsProfile profile = ConfigurationProfile as MixedRealityDiagnosticsProfile;

            if (profile == null)
            {
                return;
            }

            eventData = new DiagnosticsEventData(EventSystem.current);

            // Apply profile settings
            ShowDiagnostics   = profile.ShowDiagnostics;
            ShowProfiler      = profile.ShowProfiler;
            ShowFrameInfo     = profile.ShowFrameInfo;
            ShowMemoryStats   = profile.ShowMemoryStats;
            FrameSampleRate   = profile.FrameSampleRate;
            WindowAnchor      = profile.WindowAnchor;
            WindowOffset      = profile.WindowOffset;
            WindowScale       = profile.WindowScale;
            WindowFollowSpeed = profile.WindowFollowSpeed;

            CreateVisualizations();
        }
Example #2
0
        /// <inheritdoc />
        public override void Initialize()
        {
            if (!Application.isPlaying)
            {
                return;
            }

            MixedRealityDiagnosticsProfile profile = ConfigurationProfile as MixedRealityDiagnosticsProfile;

            if (profile == null)
            {
                return;
            }

            eventData = new DiagnosticsEventData(EventSystem.current);

            // Apply profile settings
            ShowDiagnostics = profile.ShowDiagnostics;
            ShowProfiler    = profile.ShowProfiler;

            CreateVisualizations();
        }