コード例 #1
0
        private static bool PrepareForRelease()
        {
            if (!EditorUtility.DisplayDialog("Delete Generated Files", "This action will delete all generated files, including those containing user data.\n\nAre you sure you want to continue?", "Confirm", "Cancel"))
            {
                return(false);
            }

            PluginConfiguration.DeleteAllProjectSettings();

            foreach (var plugin in PluginContainer.plugins)
            {
                PathUtility.DeleteDirectoryIfExists(plugin.paths.persistentGenerated);
                PathUtility.DeleteDirectoryIfExists(plugin.paths.transientGenerated);
            }

            return(true);
        }