Esempio n. 1
0
        static string SaveDialog(AssetsPath assetsPath)
        {
            // save dialog
            var path = EditorUtility.SaveFilePanel(
                "Save png",
                assetsPath.Parent.FullPath,
                $"{assetsPath.FileNameWithoutExtension}.png",
                "png");

            if (!string.IsNullOrEmpty(path))
            {
                m_lastExportDir = Path.GetDirectoryName(path).Replace("\\", "/");
            }
            return(path);
        }