コード例 #1
0
        public void OnPreprocessBuild(BuildReport report)
        {
            CustomSettingsEditorPackage <ResourcesAssetEditorSettingsData> settings = ResourcesAssetEditorSettings.Settings;

            if (settings.Exists() && settings.GetData().UpdateAllGroupsOnBuild)
            {
                ResourcesAssetEditorUtility.UpdateAssetGroupAll();
            }
        }
コード例 #2
0
        public static void StartUpdateAssetGroupAll()
        {
            int progressId = Progress.Start("Update All Resources Assets Group", string.Empty, Progress.Options.Indefinite);

            try
            {
                ResourcesAssetEditorUtility.UpdateAssetGroupAll();

                Progress.Finish(progressId);
            }
            catch
            {
                Progress.Finish(progressId, Progress.Status.Failed);
                throw;
            }
            finally
            {
                AssetDatabase.SaveAssets();
            }
        }