This version of Unity is unsupported.

Profiler.GetCategoriesCount

Declaration

public static uint GetCategoriesCount();

Returns

uint Returns number of ProfilerCategory registered in Profiler.

Description

Returns number of ProfilerCategory registered in Profiler.

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.