Edytuj

Udostępnij za pośrednictwem


MixedRealityToolkitVisualProfiler Class

Definition

The VisualProfiler provides a drop in, single file, solution for viewing your Windows Mixed Reality Unity application's frame rate and memory usage. Missed frames are displayed over time to visually find problem areas. Memory is reported as current, peak and max usage in a bar graph.

public ref class MixedRealityToolkitVisualProfiler : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Services/MixedRealityToolkitVisualProfiler")]
public class MixedRealityToolkitVisualProfiler : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Services/MixedRealityToolkitVisualProfiler")>]
type MixedRealityToolkitVisualProfiler = class
    inherit MonoBehaviour
Public Class MixedRealityToolkitVisualProfiler
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
MixedRealityToolkitVisualProfiler
Attributes
UnityEngine.AddComponentMenuAttribute

Remarks

To use this profiler simply add this script as a component of any GameObject in your Unity scene. The profiler is initially enabled (toggle-able via the initiallyActive property), but can be toggled via the enabled/disable voice commands keywords.

Constructors

MixedRealityToolkitVisualProfiler()

Properties

FrameInfoVisible
FrameSampleRate
IsVisible
MemoryStatsVisible
ShowProfilerDuringMRC

If the diagnostics profiler should be visible while a mixed reality capture is happening on HoloLens.

WindowAnchor
WindowFollowSpeed
WindowOffset
WindowParent
WindowScale

Applies to