Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm getting an nullreference error in this project I imported. #2

Open
esware opened this issue Feb 17, 2021 · 1 comment
Open

I'm getting an nullreference error in this project I imported. #2

esware opened this issue Feb 17, 2021 · 1 comment

Comments

@esware
Copy link

esware commented Feb 17, 2021

NullReferenceException: Object reference not set to an instance of an object
Animators.CharacterAnimator.setHorInput (System.Single horInput) (at Assets/Scripts/Animators/CharacterAnimator.cs:30)
Animators.AnimatorFacade.setInputs (System.Single horInput, System.Single verInput, System.Single inputMagnitude) (at Assets/Scripts/Animators/AnimatorFacade.cs:30)
Animators.AnimatorFacade.updateInputs () (at Assets/Scripts/Animators/AnimatorFacade.cs:26)
Characters.Movement.GroundMovement.updateAnimParameters (UnityEngine.Vector3 groundVelocity) (at Assets/Scripts/Characters/Movement/GroundMovement.cs:43)
Characters.Movement.GroundMovement.move (UnityEngine.Vector3 direction) (at Assets/Scripts/Characters/Movement/GroundMovement.cs:22)
Player.Player.FixedUpdate () (at Assets/Scripts/Player/Player.cs:49)

@mikhomak
Copy link
Owner

Hey!
Did you put animator component on the character's mesh? You can find more here
image


You would also need to add those attributes to the animator:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants