GetUniquePath() private static method

private static GetUniquePath ( string basePath, string extension ) : string
basePath string
extension string
return string
        private static void CreateEditableCopy(MenuCommand command)
        {
            TrueTypeFontImporter trueTypeFontImporter = command.context as TrueTypeFontImporter;

            if (trueTypeFontImporter.fontTextureCase == FontTextureCase.Dynamic)
            {
                EditorUtility.DisplayDialog("Cannot generate editabled font asset for dynamic fonts", "Please reimport the font in a different mode.", "Ok");
                return;
            }
            string str = Path.GetDirectoryName(trueTypeFontImporter.assetPath) + "/" + Path.GetFileNameWithoutExtension(trueTypeFontImporter.assetPath);

            EditorGUIUtility.PingObject(trueTypeFontImporter.GenerateEditableFont(TrueTypeFontImporterInspector.GetUniquePath(str + "_copy", "fontsettings")));
        }