Search Issue Tracker

Fixed in 4.5.X

Votes

0

Found in

4.3.0f4

Issue ID

578477

Regression

No

Animator.GetBoneTransform() causes crash when there is no avatar

Animation

-

To reproduce:
1. Create a new script and add:
void Start() {
Animator animator = GetComponent<Animator>();
animator.GetBoneTransform(HumanBodyBones.Jaw);
}
2. Create an empty gameobject and attach an animator component to it
3. Attach the script to the gameobject and enter play mode - unity crashes

This should throw an error, but not crash

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.