Help with MaterialPropertyBlock in Animation

I cannot modify Material property in the Animator, I get this error, none of the materials are modifiable in Animator, and in the pass I was able to, my version is 5.2.1 the last one

NullReferenceException: Object reference not set to an instance of an object
UnityEditorInternal.AnimationRecording.HasAnyRecordableModifications (UnityEngine.GameObject root, UnityEditor.UndoPropertyModification[ ] modifications) (at C:/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/AnimationRecording.cs:16)
UnityEditorInternal.AnimationRecording.Process (UnityEditorInternal.AnimationWindowState state, UnityEditor.UndoPropertyModification[ ] modifications) (at C:/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/AnimationRecording.cs:49)
UnityEditorInternal.AnimationWindowState.PostprocessAnimationRecordingModifications (UnityEditor.UndoPropertyModification[ ] modifications) (at C:/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/AnimationWindowState.cs:1255)
UnityEditorInternal.MaterialAnimationUtility.ApplyMaterialModificationToAnimationRecording (UnityEditor.MaterialProperty materialProp, UnityEngine.Object target, Single value) (at C:/buildslave/unity/build/Editor/Mono/Animation/MaterialAnimationUtility.cs:34)
UnityEditorInternal.MaterialAnimationUtility.ApplyMaterialModificationToAnimationRecording (UnityEditor.MaterialProperty materialProp, Int32 changedMask, UnityEngine.Renderer target, System.Object oldValue) (at C:/buildslave/unity/build/Editor/Mono/Animation/MaterialAnimationUtility.cs:93)
UnityEditor.MaterialEditor+ForwardApplyMaterialModification.DidModifyAnimationModeMaterialProperty (UnityEditor.MaterialProperty property, Int32 changedMask, System.Object previousValue) (at C:/buildslave/unity/build/Editor/Mono/Inspector/MaterialEditor.cs:1083)

Please help…

5.2.2f1 has same error log

Same problem here. Is this supposed to be fixed soon? or do I need to make my own animation system for materials ?

Me too. Fix it plz…

yeah, another Bug of the Year

Hi everyone - have you tried this:

Add a cube.
Add a material to cube.
Select cube.
Open animator.
Add new clip.
Add Meshrenderer.Material._Color property.
Animate rgb values from animator spinners.
Stop recording.
Press play to play game.

I am having the same issue - it is ridiculous. I can’t record any animation.

Askaliate: Did you try what I did?