Hi everyone,
I am new to C#.
My project worked last week. But I find my script goes wrong because of the statement “using fungus” , and I realize the script of Fungus can’t operate properly.
What can I do?
Hi everyone,
I am new to C#.
My project worked last week. But I find my script goes wrong because of the statement “using fungus” , and I realize the script of Fungus can’t operate properly.
What can I do?
This isn’t a 2D feature or issue so I’ll move this to the Scripting forum.
did you install using these steps?
which unity version you have?
My version is 2020.3.25f1.
Yeah, I installed fungus by following these step.
But I have used fungus for 2 month, and It goes wrong by no reason today.
whats the error message?
if you use Version Control, can compare whats different from last time it worked.
Unfortunately, I didn’t use Version Control.
Most of the scripts under “Editor” have problem with CS0246 like this.
Am I got the same problem with below?
does console have any other errors ? (like sometimes “Character” is common name with other scripts too, so could be conflict)
When I operated, console show my script have NullReferenceException problems (because I can’t using fungus as statement). but my game and marked line still run properly.
This sorta smells like maybe just Visual Studios is losing its mind intellisense-wise.
This may help you with intellisense and possibly other Visual Studio integration problems:
Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.
Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.
Barring all that, move on to other ideas:
Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button
Also, this: No suggestions in Vscode
Once you fix the above, then just fix your nullref:
NOTE: Your nullref is NOT related to the above inability to issue a using statement.
How to fix a NullReferenceException error
https://forum.unity.com/threads/how-to-fix-a-nullreferenceexception-error.1230297/
Three steps to success:
I realized it was causal problem, losing detection of VS caused the above question.
Thank you so much for solving my question.
Also, thanks mgear for trying to solve my question.