using UnityEngine;
using UnityEditor;
namespace LeopotamGroup.UnityEditor.NguiExtensions {
sealed class NguiFixer : global::UnityEditor.AssetModificationProcessor {
static string[] OnWillSaveAssets (string[] paths) {
foreach (var path in paths) {
if (path == EditorApplication.currentScene) {
FixLabels ();
}
}
return paths;
}
static void FixLabels () {
foreach (var item in Object.FindObjectsOfType<UILabel> ()) {
item.MarkAsChanged ();
}
}
}
}