We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e45f6c commit 226f1b4Copy full SHA for 226f1b4
UnityPerformanceBenchmarkReporter/PerformanceBenchmark.cs
@@ -134,7 +134,10 @@ private void AddTestResults(
134
public void SetDataVersion(string version)
135
{
136
if(int.TryParse(version,out int result)){
137
- DataVersion = result;
+ if(result > 0 && result < 3)
138
+ DataVersion = result;
139
+ else
140
+ throw new ArgumentException($"{version} is not a valid data format version. Please pass 1 or 2");
141
}else{
142
throw new ArgumentException($"{version} is not a valid data format version");
143
}
0 commit comments