User Tools

Site Tools


en:examples:objects:counting_all_objects

Getting the total count of all Objects

This function will return the total count of all current objects.

Code

orxU32 totalObjectsCount = orxStructure_GetCounter(orxSTRUCTURE_ID_OBJECT);

Counts of other structure types can also be called. See: orxSTRUCTURE_ID in the API

en/examples/objects/counting_all_objects.txt · Last modified: 2018/02/14 00:47 (7 years ago) by 127.0.0.1