Search Issue Tracker
Duplicate
Votes
0
Found in
5.6.0b7
Issue ID
881128
Regression
Yes
NullReferenceException when playing humanoid animation having its avatar copied from another fbx
To reproduce:
1. Open attached project.
2. Open scene: AnimationTestScene
3. Select asset in project view: Assets/units/New Experimental/Animations/Maw_J_Laygo@dwarf_walk
4. Reimport it by unticking and ticking again "Import Animation" field and press apply.
5. Press play.
6. Leave playmode, and press play again.
After second playmode enter, an error appears everytime entering playmode:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AnimationClipInfoProperties.MaskFromClip (UnityEngine.AvatarMask mask) (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AnimationClipInfoProperties.cs:107)
UnityEditor.AvatarMaskInspector.set_clipInfo (UnityEditor.AnimationClipInfoProperties value) (at C:/buildslave/unity/build/Editor/Mono/Inspector/AvatarMaskInspector.cs:221)
UnityEditor.ModelImporterClipEditor.SyncClipEditor () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/ModelImporterClipEditor.cs:214)
UnityEditor.ModelImporterClipEditor.OnEnable () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/ModelImporterClipEditor.cs:176)
or sometimes gives different error (or both):
NullReferenceException: (null)
UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs, UnityEngine.Object context) (at C:/buildslave/unity/build/artifacts/generated/common/editor/SerializedPropertyBindings.gen.cs:87)
UnityEditor.Editor.GetSerializedObjectInternal () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:175)
UnityEditor.Editor.get_serializedObject () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:168)
UnityEditor.AvatarMaskInspector.InitializeSerializedProperties () (at C:/buildslave/unity/build/Editor/Mono/Inspector/AvatarMaskInspector.cs:265)
Reproducible on: 5.6.0b7, 5.6.0b5 (802d0eaaa43c)
Not reproducible on: 5.6.0b1 (d37b23d9dfff)
Regression introduced somewhere between 5.6.0b5 and 5.6.0b1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Rendering Debugger] Shortcut in documentation to open window doesn't work
- The "Compress Tilemap Borders" function is not working when used via the Context Menu or through Script
- HDRP Sorting Priority not working when Render Pass is locked on a parent material
- [XR] Camera view rendered by the RenderTexture is not updated at runtime when XR is enabled
- Lens Flare occlusion is slightly delayed when Anti-aliasing is set to TAA
This is a duplicate of issue #879846