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
- Select Preset "None" icon changes after switching tabs
- [Android] Crash when using xxHash3 and targeting the ARMv7 Architecture with IL2CPP Scripting Backend
- GameObject reference in a Script Component becomes missing when unpacking a variant of another Prefab variant
- Project Settings vertical separator position is not synchronized with the mouse position when dragging it horizontally
- Crash on PhysicsDebugDraw::SelectFiltering::Update when entering play mode with Physics Debug window docked and unfocused
This is a duplicate of issue #769885