ProfilerCategory
Use to construct ProfilerCategory by category name.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Constructor
- Namespace: Unity.Profiling
- Assembly: UnityEngine.CoreModule
ProfilerCategory(string)
Use to construct ProfilerCategory by category name.
public ProfilerCategory(string categoryName)
Parameters
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
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.