文档

Unity Engine

Unity Engine

GetCategoriesCount()

Returns number of ProfilerCategory registered in Profiler.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static uint GetCategoriesCount()

Returns

Type

Description

uintReturns number of ProfilerCategory registered in Profiler.

Remarks

Returns a total number of ProfilerCategory registered in the Profiler. Can be used together with Profiler.GetAllCategories to pre-allocate a container to the required size.