Android Performance Tuner is a library to help developers measure frame rendering time across different devices and game stages. This plugin will help developers integrate Android Performance Tuner into their game.
All Unity paths are with Unix separator / while Path.Combine() under Windows uses \
So comparing if (str.Equals(Paths.configPath)) won't work.
This breaks the main Setup window.
Fixed with:
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets,
string[] movedFromAssetPaths)
{
// handle windows paths.
var configPath = Path.DirectorySeparatorChar == '/'
? Paths.configPath
: Paths.configPath.Replace(Path.DirectorySeparatorChar, '/');
foreach (string str in importedAssets)
{
// We are interested in knowing when the SetupConfig has been re-imported so that it can correctly be
// loaded and used by the Init function.
if (str.Equals(configPath))
{
Init();
break;
}
}
}
All Unity paths are with Unix separator
/
whilePath.Combine()
under Windows uses \ So comparingif (str.Equals(Paths.configPath))
won't work. This breaks the main Setup window.Fixed with: