Search Issue Tracker
Fixed in 5.4.0
Votes
3
Found in
5.4.0b3
Issue ID
763532
Regression
Yes
[Avatar] Opening "Configure Avatar" window throws error that get_BoneCount is called in MonoBehaviour constructor
Steps to reproduce:
1. Open attached project
2. Open scene "repro"
3. Select "Robot Kyle" in hierarchy
4. Select its Avatar by clicking on it in Animator
5. Edit Avatar
6. Notice errors in console:
a) get_BoneCount is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'AvatarMappingEditor' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.DockArea:OnGUI()
b) InvalidOperationException: Operation is not valid due to the current state of the object
System.Collections.Generic.Stack`1[System.Boolean].Pop ()
UnityEditor.EditorGUI.EndDisabled () (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:246)
Regression introduced in 5.4.0b1
Reproduced with: 5.4.0b3
Comments (7)
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
- “Label” name in Sprite Library Editor window lacks character limit causing long names go under the Object Field
- Preview image (screenshot) is not available after capturing snapshot in Memory Profiler
- Crash on UNITY_FT_Stream_ReadAt when changing TMPro properties after unloading an AssetBundle
- Particles spawn at the same position when using raw byte address buffer in VFX Graph
- Decal Shader Graph - Custom vertex interpolators are always 0
winberry
Apr 17, 2016 20:18
I'm getting this but it says it's been FIXED..is there a way to find where or how it has been fixed? thanks
SaraYamit
Apr 15, 2016 02:29
Getting the same error after importing a rigged model from maya. I am using b11.
timeposse
Apr 05, 2016 03:36
Getting this in 5.4.0.b12 as well.
Tactical_Beard
Apr 01, 2016 21:23
Getting this in 5.4.0b11
Steamc0re
Mar 26, 2016 07:33
Tried to use some Mixamo downloaded animations to test out some things, got the exact same error.
get_BoneCount is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'AvatarMappingEditor' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.AvatarMappingEditor:.ctor()
JU52
Mar 25, 2016 16:08
same in B11
get_BoneCount is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'AvatarMappingEditor' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.AvatarMappingEditor:.ctor()
Brainswitch
Mar 20, 2016 05:41
I am also seeing this on 5.4.0b10.