Game Development Community

TGB - Object Count?

by Brian Wilson · in Torque Game Builder · 05/10/2008 (4:03 am) · 2 replies

Similar to my question regarding FPS, is there a way to get the current object count, either from the setDebugOn(0) method or from any other way? Should I be barking up the SimGroup tree? (TGB 1.7.2, btw).

#1
05/10/2008 (9:06 am)
Check out the methods for t2dSceneGraph, namely getSceneObjectCount.

Also, the debug banner has this information as well in the TotalObj field.
#2
05/10/2008 (10:06 am)
@Mike
Thanks, I'll check on the getSceneObjectCount, didn't see that one in the reference manual. I noticed the field in the debugger panel, and that's what made we want to have direct access to data.

I'll update on progress if the method you mentioned work out.


Cheers