ProfilerCategory
Use to construct ProfilerCategory by category name.
阅读时间1 分钟最后更新于 1 个月前
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.