static bool ApplyMaterialModificationToAnimationRecording(PropertyModification[] modifications) { UndoPropertyModification[] undoModifications = new UndoPropertyModification[modifications.Length]; for (int i = 0; i < undoModifications.Length; ++i) { undoModifications[i].previousValue = modifications[i]; } UndoPropertyModification[] ret = Undo.InvokePostprocessModifications(undoModifications); return(ret.Length != modifications.Length); }