void DrawTotalSize()
{
GUILayout.BeginVertical();
GUILayout.Label(TIME_OF_BUILD_LABEL, INFO_TITLE_STYLE_NAME);
GUILayout.Label(_buildInfo.GetTimeReadable(), INFO_SUBTITLE_STYLE_NAME);
GUILayout.Space(40);
if (_buildInfo.HasOldSizeValues)
{
// in old sizes:
// TotalBuildSize is really the used assets size
// CompressedBuildSize if present is the total build size
DrawLargeSizeDisplay(USED_TOTAL_SIZE_LABEL, USED_TOTAL_SIZE_DESC, _buildInfo.TotalBuildSize);
GUILayout.Space(40);
DrawLargeSizeDisplay(BUILD_TOTAL_SIZE_LABEL, GetProperBuildSizeDesc(), _buildInfo.CompressedBuildSize);
}
else
{
// Unused Assets
if (_buildInfo.UnusedAssetsIncludedInCreation)
{
DrawLargeSizeDisplay(UNUSED_TOTAL_SIZE_LABEL, UNUSED_TOTAL_SIZE_DESC, _buildInfo.UnusedTotalSize);
GUILayout.Space(40);
}
// Used Assets
DrawLargeSizeDisplay(USED_TOTAL_SIZE_LABEL, USED_TOTAL_SIZE_DESC, _buildInfo.UsedTotalSize);
GUILayout.Space(40);
// Streaming Assets
if (_buildInfo.StreamingAssetsSize != "0 B")
{
DrawLargeSizeDisplay(STREAMING_ASSETS_TOTAL_SIZE_LABEL, STREAMING_ASSETS_SIZE_DESC, _buildInfo.StreamingAssetsSize);
GUILayout.Space(40);
}
// Total Build Size
DrawLargeSizeDisplay(BUILD_TOTAL_SIZE_LABEL, GetProperBuildSizeDesc(), _buildInfo.TotalBuildSize);
DrawAuxiliaryBuildSizes();
}
GUILayout.EndVertical();
}