Question by
shadder2k · Dec 20, 2017 at 03:58 AM ·
variablenavmeshagenttutorial
UnassignedReferenceException: The variable agent of PlayerMovement has not been assigned
I am learning the Phase 1b of Adventure Game Unity Tutorial. The player can move normally but Unity warns that the variable agent of PlayerMovement has not been assigned. I copied the codes from the completed project and tried every step correctly.The player can move but this warning still exists.
nxk77lis2tsjn27eo2c6.png
(20.7 kB)
21ohhzg31.png
(39.0 kB)
Comment
Your answer
Follow this Question
Related Questions
Zombunny not properly responding 1 Answer
Variable not assigned but is. 0 Answers
How to tell the current speed at which a GameObject is moving at via NavMeshAgent 0 Answers
How to make the navmesh agent accomplish one task per time? 0 Answers
Nav agent destination stuck at instantiation location 0 Answers