Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAllCategories

Returns all ProfilerCategory registered in Profiler.
Read time 1 minuteLast updated 10 days ago

Definition

GetAllCategories(ProfilerCategory[])

Returns all ProfilerCategory registered in Profiler.
[Conditional("ENABLE_PROFILER")]public static void GetAllCategories(ProfilerCategory[] categories)

Parameters

Remarks

Fills the provided array with a list of ProfilerCategory registered in the Profiler. It is a user's responsibility to provide an array with enough space. Returns first N ProfilerCategory where N is the size of the provided array if the size isn't enough. Use together with Profiler.GetCategoriesCount to get the required size.

GetAllCategories(NativeArray<ProfilerCategory>)

Returns all ProfilerCategory registered in Profiler.
[Conditional("ENABLE_PROFILER")]public static void GetAllCategories(NativeArray<ProfilerCategory> categories)

Parameters

Remarks

Fills the provided array with a list of ProfilerCategory registered in the Profiler. It is a user's responsibility to provide an array with enough space. Returns first N ProfilerCategory where N is the size of the provided array if the size isn't enough. Use together with Profiler.GetCategoriesCount to get the required size.