#VS22 configuration
1 messages · Page 1 of 1 (latest)
ok
Okay how did you install VS 2022 the first time? From the official website or Unity Hub?
the website
Okay so there are more steps to do. Open the program called Visual Studio Installer, that manages your VS installation
Oh and you need to close both Unity and VS 2022 for that
Hit "Modify", then a list will appear, scroll down a bit and make sure the "Game Development with Unity" package is active
Okay so it's good on that side. You can close the program and open Unity again
unity hub or unity
Unity, the project you were working on
should i use safe mode?
That means you had errors when you closed, so yes
Now open the Package Manager (Window > Package Manager)
copy
And make sure the Visual Studio Editor package is installed and up to date
The last one, it needs an update it seems
Select it and click the Update button at the bottom right
You can close the package manager now
yes
Now onto telling Unity to use VS as its code editor
Go to Edit > Preferences, External Tools section
this?
Okay now click that Regenerate Project Files button, and close that window
No. VS 2022 and VS Code are two different programs
VS 2022 is the better one
cant find it
You just posted a screenshot of it
Yep normal for now
Close the window and double click the error in your console
It hopefully should open VS automatically now
Good, configuration is complete now
Usually you would post the code as text, but just to confirm, this time only you can post a screenshot of it
Okay, for the first error in the list, you have one too many } at the end
wich one do i delete
And for the second one, you misspelled the name
Remove any of the last two, it doesn't matter in this case
done
now it says Severity Code Description Project File Line Suppression State
Error CS1513 } expected
You removed just one, right? Not both
No, any of the last two I said
ok, its fixed now
Good
Yeah, basically you've put the spawnPipe function inside Update, it should be out of it
hmm the video didnt do it
They probably did, it's just a matter of placing the } of Update correctly
In the last screenshot you posted, the } on line 42 should be on line 31
But whatever VS told you is probably right, as you weren't using it it asked you to delete it entirely
Oh good, yep that's the correct code now
thanks, i know i have been a pain in ass.(sorry) Thanks again
Nah it's good
Now you have a proper code editor that shows errors and most importantly shows suggestions of code as you type them
ye
I'll close this thread now, have a good day