|
Post by Devistute on May 30, 2019 16:24:10 GMT
I created a prefab of my character which resides in scene meant for testing, dragged it in to the new scene to configure him properly to interactions, etc but the character bugs out.
He wont move at all, he's simply walking in place. Jumping apparently moves him few meters, but that's it.
Additionally, Console throws interesting errors when the Scene is played.
I have no clue why as the same character works perfectly in the testing scene.
Here's the error.
NullReferenceException: Object reference not set to an instance of an object Invector.vCharacterController.vThirdPersonAnimator.LocomotionAnimation () (at E:/Unity/Projects/Nocturnal Remastered/Assets/Extensions/Controller/Basic Locomotion/Scripts/CharacterController/vThirdPersonAnimator.cs:189) Invector.vCharacterController.vThirdPersonAnimator.UpdateAnimator () (at E:/Unity/Experimental Projects/Nocturnal Remastered/Assets/Extensions/Controller/Basic Locomotion/Scripts/CharacterController/vThirdPersonAnimator.cs:105) Invector.vCharacterController.vThirdPersonAnimator.OnAnimatorMove () (at E:/Unity/Projects/Nocturnal Remastered/Assets/Extensions/Controller/Basic Locomotion/Scripts/CharacterController/vThirdPersonAnimator.cs:54) Any ideas whats going on? Safest bet now is that the Prefab goes broken upon creating. Using latest Unity.
Edit; Disabling "Turn on Spot Anim" allows the character to move again, but only forward. You can not turn in any direction. This is really odd.
|
|
|
Post by Invector on May 31, 2019 12:09:53 GMT
Do you have a Camera with the tag "MainCamera" in the scene?
|
|
|
Post by Devistute on May 31, 2019 14:18:24 GMT
Do you have a Camera with the tag "MainCamera" in the scene? What the.. How did i miss that? xD
|
|
|
Post by Invector on May 31, 2019 17:39:52 GMT
The Console should have warned you
|
|
|
Post by Devistute on Jun 2, 2019 7:49:05 GMT
The Console should have warned you Yeah, i only had the actual errors enabled in console, nothing else.
|
|