Game Development Community

T2DSceneGraph.Instance doesn't exist?

by Robert Jones · in Torque X 2D · 03/30/2008 (5:52 am) · 3 replies

I decided to download and give Torque X 2.0 a try this weekend, and to get a feel for the system I've been working my way though the tutorials.

Aside from the GUI changes between 1.0 and 2.0 everything has been going well, right up until I tried to do the Futuristic Strategy Master tutorial.

Having added all the code in the "Let's head into the machine shop" section I hit build only to be told that;

error CS0117: 'GarageGames.Torque.T2D.T2DSceneGraph' does not contain a definition for 'Instance'

Intellisense agrees and I can't see it anywhere in the docs either.

So, any clues as to what I'm missing here? A using statement of some sort? or is there some other method of getting a T2DSceneGraph instance I'm missing?

Any help would be much appricated

About the author

Recent Threads


#1
03/30/2008 (6:42 am)
The tutorials are in the process of being updated (could be as early as this week), but were written for TX 1.5, which only allowed you to have one sceneGraph, therefore there was an instance of that scenegraph.

Now, you can have as many scenegraphs as you like (both 2D and 3D), so the concept of "Instance" was removed. You can search the object database for the scenegraph you need by name and use the reference returned from there within the tutorial, or you can wait a few days for the tutorial updates which will demonstrate the new best practice :)
#2
03/30/2008 (7:22 am)
Ah, I see, that would make sense :)

I guess I can wait a few days for new tutorials then, still got plenty of my 28 day trial left :)

Thanks for the reply.
#3
03/31/2008 (1:00 am)
John Kanalakis has published the updated tutorials: http://www.garagegames.com/blogs/44338/14528