@@ -190,23 +190,29 @@ public override void OnInspectorGUI() {
190
190
191
191
var repairMissingScripts = new GUIContent (
192
192
"Run Component Updater" ,
193
- "Repair missing FbxPrefab scripts in text assets" ) ;
193
+ "If the forum package 1.1.0b1 was previously installed, then links to the FbxPrefab component in your assets will need updating." +
194
+ " Run this button to update all FbxPrefab references in your text serialized prefabs and scene files." ) ;
195
+
194
196
if ( GUILayout . Button ( repairMissingScripts ) ) {
195
197
var componentUpdater = new FbxExporters . Editor . RepairMissingScripts ( ) ;
196
198
var filesToRepairCount = componentUpdater . GetAssetsToRepairCount ( ) ;
199
+ var dialogTitle = "FBX Exporter Component Updater" ;
197
200
if ( filesToRepairCount > 0 ) {
198
- bool result = UnityEditor . EditorUtility . DisplayDialog ( "Component Updater" ,
199
- string . Format ( "Found {0} text assets with components requiring update.\n \n " +
201
+ bool result = UnityEditor . EditorUtility . DisplayDialog ( dialogTitle ,
202
+ string . Format ( "Found {0} text asset(s) with components requiring update.\n \n " +
200
203
"If you choose 'Go Ahead', the components in these text serialized assets " +
201
204
"will be automatically updated to work with the latest FBX exporter.\n " +
202
205
"You should make a backup before proceeding." , filesToRepairCount ) ,
203
206
"I Made a Backup. Go Ahead!" , "No Thanks" ) ;
204
207
if ( result ) {
205
208
componentUpdater . ReplaceGUIDInTextAssets ( ) ;
209
+ } else {
210
+ var assetsToRepair = componentUpdater . GetAssetsToRepair ( ) ;
211
+ Debug . LogFormat ( "Failed to update the FbxPrefab components in the following files: {0}" , string . Join ( ", " , assetsToRepair ) ) ;
206
212
}
207
213
} else {
208
- UnityEditor . EditorUtility . DisplayDialog ( "Component Updater" ,
209
- "Couldn't find any text assets requiring update " , "Ok" ) ;
214
+ UnityEditor . EditorUtility . DisplayDialog ( dialogTitle ,
215
+ "Couldn't find any text assets that require updating " , "Ok" ) ;
210
216
}
211
217
}
212
218
0 commit comments