public virtual void OnDisable()
{
AssetImporter target = base.target as AssetImporter;
if (((Unsupported.IsDestroyScriptableObject(this) && this.m_MightHaveModified) && ((target != null) && !InternalEditorUtility.ignoreInspectorChanges)) && (this.HasModified() && !this.AssetWasUpdated()))
{
string message = "Unapplied import settings for '" + target.assetPath + "'";
if (base.targets.Length > 1)
{
message = "Unapplied import settings for '" + base.targets.Length + "' files";
}
if (EditorUtility.DisplayDialog("Unapplied import settings", message, "Apply", "Revert"))
{
this.Apply();
this.m_MightHaveModified = false;
ImportAssets(this.GetAssetPaths());
}
}
if ((base.m_SerializedObject != null) && base.m_SerializedObject.hasModifiedProperties)
{
base.m_SerializedObject.Cache(base.GetInstanceID());
base.m_SerializedObject = null;
}
}