ドキュメント

Unity Engine

Unity Engine

Tooltip

The tooltip text displayed when hovering over the module in the Profiler window.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public string Tooltip { get; set; }

Remarks

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) {}}