Saving level statics
In this recipe, we will create an XML report with statistics for the currently loaded level. The report includes all assets that are loaded, their size, dependencies, and the number of instances in the scene.
Getting ready
The report that we will generate will be created as an .xml
and can be opened by using Microsoft Excel.
How to do it...
The Save Level Statistics printout is accessible in two main ways. Both are quite simple:
The first way is to use the Tools menu in the Sandbox and navigate to the Save Level Statistics option:
The second way is to output the level statistics by using a console command. Triggering the writing of the data from the console is quite useful when running in the launcher. The console command you must enter is
SaveLevelStats
.
Performing this command through either method will create two .xml
files under the rootdirectory/testresults
folder.
The names of these files contain the names of the level that they were saved from. For example, the two files...