Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

ProfilerModuleMetadataAttribute.Tooltip

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public Tooltip;

Description

The tooltip text displayed when hovering over the module in the Profiler window.

Provides additional information about the module's purpose and functionality. This property is optional and can be set using object initialization syntax.

using System;
using Unity.Profiling;
using Unity.Profiling.Editor;

[ProfilerModuleMetadataAttribute( "Memory Allocation Tracker", Tooltip = "Tracks memory allocations and garbage collection activity per frame" )] public class MemoryAllocationProfilerModule : ProfilerModule { static readonly ProfilerCounterDescriptor[] k_ChartCounters = new ProfilerCounterDescriptor[] { new ProfilerCounterDescriptor("Total Allocations", ProfilerCategory.Memory), new ProfilerCounterDescriptor("GC Allocations", ProfilerCategory.Memory), };

public MemoryAllocationProfilerModule() : base(k_ChartCounters) {} }