Documentation

Unity Engine

Unity Engine

ProfilerCategory

Use to construct ProfilerCategory by category name.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Constructor
  • Namespace: Unity.Profiling
  • Assembly: UnityEngine.CoreModule

ProfilerCategory(string)

Use to construct ProfilerCategory by category name.
public ProfilerCategory(string categoryName)

Parameters

categoryName

Profiler category name.

Remarks

This constructor performs a lookup across built-in Profiler categories and stores the category identifier. If the category does not exist, then it uses ProfilerCategory.Scripts instead.

ProfilerCategory(string, ProfilerCategoryColor)

Use to construct ProfilerCategory by category name.
public ProfilerCategory(string categoryName, ProfilerCategoryColor color)

Parameters

categoryName

Profiler category name.

Remarks

This constructor performs a lookup across built-in Profiler categories and stores the category identifier. If the category does not exist, then it uses ProfilerCategory.Scripts instead.