❔ for some reason I keep getting the error "UnassignedReferenceException: m_GroundCheck..." help
Hello, I've been playing around with different movement scrips and theyve been helping me learn but for some reason I keep getting the same error when using this script https://github.com/Brackeys/2D-Character-Controller/blob/master/CharacterController2D.cs please help
GitHub
2D-Character-Controller/CharacterController2D.cs at master · Bracke...
Free 2D Character Controller for Unity. Contribute to Brackeys/2D-Character-Controller development by creating an account on GitHub.
3 Replies
exact error message - UnassignedReferenceException: The variable m_GroundCheck of CharacterController2D has not been assigned.
You probably need to assign the m_GroundCheck variable of the CharacterController2D script in the inspector.
UnityEngine.Transform.get_position () (at <ab74fe8c3de74feeafac966c034df8aa>:0)
CharacterController2D.FixedUpdate () (at Assets/Movement.cs:51)
did you try what the error message suggested?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.