InvalidOperationException: Avatar is not of type humanoid.

MidnightAleks

New member
Hello,

Getting below error on play in fresh project demo scene on horse gameobject

UnityEngine.Animator.GetBoneTransform (UnityEngine.HumanBodyBones humanBoneId) (at <f8fd121c375d41e6b0501bac934b40d4>:0)
Opsive.UltimateCharacterController.Character.LocalLookSource.Awake () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/LocalLookSource.cs:45)

UCC 2.4.7
Unity 2022.1 b16
 
If you replace line 44 of LocalLookSource with the following it should fix that error:

Code:
                if (animator != null && animator.isHuman) {
 
Top