Inheritance: BaseMixedRealityProfile
        /// <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();
        }
示例#2
0
 public MixedRealityDiagnosticsSystem(
     IMixedRealityServiceRegistrar registrar,
     MixedRealityDiagnosticsProfile profile,
     Transform playspace) : base(registrar, profile)
 {
     if (playspace == null)
     {
         Debug.LogError("The MixedRealityDiagnosticSystem object requires a valid playspace Transform.");
     }
     Playspace = playspace;
 }
示例#3
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();
        }
 public MixedRealityDiagnosticsSystem(
     IMixedRealityServiceRegistrar registrar,
     MixedRealityDiagnosticsProfile profile) : base(registrar, profile)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="profile">The configuration profile for the service.</param>
 public MixedRealityDiagnosticsSystem(
     MixedRealityDiagnosticsProfile profile) : base(profile)
 {
 }
 public MixedRealityDiagnosticsSystem(
     IMixedRealityServiceRegistrar registrar,
     MixedRealityDiagnosticsProfile profile) : this(profile)
 {
     Registrar = registrar;
 }