Game Development Community

OK, One Last beginner/N00By question...

by Zachary Woodard · in General Discussion · 10/26/2011 (3:03 pm) · 2 replies

All,

I have one last question that is bothering me that I can't seem to find the answer to:

What is the initial heirarchy of objects created by the engine at startup?

For instance, in the game.cs file that is automatically created in the "Empty Game" project, we find the following default code:

Canvas.setContent(mainScreenGui);
Canvas.setCursor(DefaultCursor);

We also find:

sceneWindow2D.loadLevel(%level);

I do not see that these objects (Canvas and sceneWindow2D) are created in script.

So, is there a reference, or does anyone know what scriptable objects are created, their name/type, and which object owns what?

As always, thanks,

"Snackin"

#1
10/27/2011 (11:26 am)
If you call "dumpClassHierarchy" on an object it should tell you everything you know. I do know that "Canvas" and "SceneWindow2D" are actually created in the mainscreen.gui, and all the objects seem to fall under "RootGroup".

Oh! Just found this, this should help:

http://tdn.garagegames.com/wiki/TGB/Reference

^^
#2
10/29/2011 (10:08 am)
@Justin: Man, that was a life saver!!!

It was just what I needed to go Spelunking and find out some answers.

Thanks,

Snackin