Reader small image

You're reading from  Torque 3D Game Development Cookbook

Product typeBook
Published inJan 2013
Reading LevelIntermediate
PublisherPackt
ISBN-139781849693547
Edition1st Edition
Languages
Right arrow
Author (1)
DAVID WYAND
DAVID WYAND
author image
DAVID WYAND

David Wyand has been using GarageGames' Torque Game Engine for the past 10 years. Among his other interestes are 3D graphics applications, computer networking and Artificial Intelligence for computer games.
Read more about DAVID WYAND

Right arrow

Displaying a list of all game objects


While developing a game, it would be great to have a list of all objects in the game along with their properties. The World Editor can be used to some extent, but it only provides access to those objects that were loaded by the level. It doesn't provide access to objects dynamically created by the game play scripts. In this recipe, we'll look into gaining access to all objects in a game, regardless of how they were generated.

Getting ready

For this recipe we will be working with the console while a game is running. Start up your own game or launch the FPS Tutorial game that comes with Torque 3D, and load a level to run your character through.

How to do it...

In the following steps we will discover how to view a list of all objects in the game engine:

  1. Open the console using the tilde (~) key.

  2. Enter the following at the bottom of the screen:

    tree();
    
  3. The Torque SimView window will open, displaying a tree list of all objects on the left-hand side, and the properties...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Torque 3D Game Development Cookbook
Published in: Jan 2013Publisher: PacktISBN-13: 9781849693547

Author (1)

author image
DAVID WYAND

David Wyand has been using GarageGames' Torque Game Engine for the past 10 years. Among his other interestes are 3D graphics applications, computer networking and Artificial Intelligence for computer games.
Read more about DAVID WYAND