Game Development Community

Changing scene names?

by Charlie Talley · in Torque X 2D · 09/16/2009 (6:27 am) · 1 replies

I thought there was a way to setup in TXB2D the name of the scene, so that after you load it during runtime you can query for it in the object database by something other than "DefaultSceneView"...am I wrong? Do I actually have to manually go into the database, find the last loaded scene, and change it's name so I can easily find it later on?

#1
09/16/2009 (5:56 pm)
I don't think there is a way to do this in the Builder, but you can open up the levelData.txscene XML file and edit it there.

<TorqueSceneData>
  <Version>1.0</Version>
  <SceneData>
    <T2DSceneGraph>
      <Name>DefaultSceneGraph</Name>
...

Just change the last line to the new name and you should be all set.

John K.
www.envygames.com