C
C#15mo 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
Buddy15mo ago
Please do this $unitybug
MODiX
MODiX15mo 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
Galelao15mo ago
$unitybug
MODiX
MODiX15mo 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
Buddy15mo ago
Follow the instructions
TheRanger
TheRanger15mo ago
this should also help $unitytools
MODiX
MODiX15mo 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
Buddy15mo 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
Galelao15mo ago
Still learning 🤷‍♂️ I still don't understand what to do with this But yeah I'm troubleshooting atm
Buddy
Buddy15mo ago
Show me the inspector in Unity Editor
Galelao
Galelao15mo ago
Galelao
Galelao15mo ago
I figured it out
Accord
Accord15mo 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
More Posts