mojo3d debugging: CountEntities and PrintEntities

About Monkey 2 Forums Monkey 2 Code Library mojo3d debugging: CountEntities and PrintEntities

This topic contains 0 replies, has 1 voice, and was last updated by  DruggedBunny 9 months, 3 weeks ago.

Viewing 1 post (of 1 total)
  • Author
  • #15338


    Just whipped up these two mojo3d debugging functions:

    • CountEntities: Returns number of entities in the current 3D scene;
    • PrintEntities: Same basic code, but prints a recursive tree of all entities in the current scene.

    (Currently helping me figure out what hasn’t been removed from my scene while moving to a new level!)


    Sample output from current project:


    Note that I haven’t yet named some entities, which show the default entity type, eg. “Model”, “Copy of Model”, “Light”, etc.

    I’m naming models with their time of creation here, so I can see if they were spawned on creation of the new level, or are still left over from the previous level (because I’ve been stupid); like so:


    I knew I had duplicate SpaceGems, but, YIKES, duplicate cameras, too!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.