TorqueX/Tutorials/3D Beta/LevelDataEditor

From TDN


Introduction

A Torque X level is saved to an XML data file, which is saved and loaded from both the 3D Builder, Visual C# project, and binary. The 3D Builder allows a developer to quickly modify a leve's objects through drag and drop, point and click operations. However, sometimes is faster to manipulate the XML data directly.


Also, sometimes you need absolute precision over your numerical values. This is why we have included the Level Data Editor within the Builder.


Visual

Image:TX_XMLEditor.JPG


Usage

The level data editor is updated as new objects are added to the scene. To force an update of the editor, click the Refresh XML button. As you make changes to the XML, you can click the Undo and Redo arrow buttons to revert and update your changes.


Also, since the XML level data can grow into a very large file, you can also enter a search string and click the Find button to locate specific text within the XML. Finally, any changes that you manually make to the XML must be synchronized back to the viewport. Click the Refresh XML button to apply your manual code changes.