Search Issue Tracker
Duplicate
Votes
0
Found in
Issue ID
770281
Regression
Yes
[animation] Bad preview and error message
Entering Editor Play mode with this character's Blend Tree preview in the Inspector causes an error in the console and default avatar to be displayed instead of expected imported character.
repro:
-import attached BlendError.unitypackage
-open errorBug scene
-open Animator window
-select mangagirl in the scene
-double-click the Blend Tree state to enter it
-click the Blend Tree node to display the Blend Preview in the Inspector
-click the Editor Play button (not preview play)
bug: error in the console and default avatar in the preview window
(see attached gif)
error:
get_skinIndex is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'BlendTreeInspector' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.BlendTreeInspector:.cctor()
Un-selecting, then re-selecting Blend Tree forces an update of the preview window and fixes the issue. Expected character is displayed again.
this is a regression from 5.3
no error in 5.3.2p2 (dec88fd2a56c)
repro in...
Version 5.4.0b6 (2c3d6b93e789)
Branch: 5.4/staging
... and animation/dev
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
- [WebGL]"TypeError: Cannot read properties of undefined (reading 'length')" error is thrown when starting the Player when config.autoSyncPersistentDataPath is set to true
- [UaaL] Freeze on "GetLightingSettingsOrDefaultsFallback()" when rotating device screen after unloading Unity framework
- A white vertical artifact is present when any Material from HDRI is used for a panoramic skybox
- Editor freezes when handling Havok collision interactions between a thin collider and the player controller
- No blue outline is shown on a folder in the Project tab when an external file is being dragged over the folder
This is a duplicate of issue #769885