private static GetUniquePath ( string basePath, string extension ) : string | ||
basePath | string | |
extension | string | |
리턴 | 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"))); }