C
C#2y ago
Galelao

❔ Unity Error that I can't find

In Unity I have received the following error: ''UnassignedReferenceException: The variable waypoints of WaypointFollower has not been assigned. You probably need to assign the waypoints variable of the WaypointFollower script in the inspector. WaypointFollower.Update () (at Assets/Scripts/WaypointFollower.cs:14)'' I am following a tutorial and I double checked to see if I had the same code thing coded (I did) but I am still getting this error.
13 Replies
Buddy
Buddy2y ago
Please do this $unitybug
MODiX
MODiX2y ago
If intellisense is not working for VSCode / Visual Studio, follow these steps.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or Visual Studio Code) as your preferred editor.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or Visual Studio Code) as your preferred editor.
Close the editor and re-open it again by double-clicking a script file.
Galelao
GalelaoOP2y ago
$unitybug
MODiX
MODiX2y ago
If intellisense is not working for VSCode / Visual Studio, follow these steps.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or Visual Studio Code) as your preferred editor.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or Visual Studio Code) as your preferred editor.
Close the editor and re-open it again by double-clicking a script file.
Buddy
Buddy2y ago
Follow the instructions
TheRanger
TheRanger2y ago
this should also help $unitytools
MODiX
MODiX2y ago
Quickstart: Install & configure Visual Studio Tools for Unity
Quickstart: Learn how to connect Unity and Visual Studio for cross-platform development. Visual Studio Tools for Unity offers support for writing and debugging.
Buddy
Buddy2y ago
And do what the error says I suggest you truly read the errors next time
You probably need to assign the waypoints variable of the WaypointFollower script in the inspector.
Galelao
GalelaoOP2y ago
Still learning 🤷‍♂️ I still don't understand what to do with this But yeah I'm troubleshooting atm
Buddy
Buddy2y ago
Show me the inspector in Unity Editor
Galelao
GalelaoOP2y ago
Galelao
GalelaoOP2y ago
I figured it out
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server