private static void OnBeginEditPivot(IntegrationArgs args) { GameObject go = args.GameObject; MeshDeformer deformer = go.GetComponentInParent <MeshDeformer>(); if (deformer != null && deformer.GetType() == typeof(MeshDeformer)) { if (!Rollback(deformer.gameObject)) { args.Cancel = true; } } }