#VS22 configuration

1 messages · Page 1 of 1 (latest)

brazen sluice
#

Conversation continues here

lethal kiln
#

ok

brazen sluice
#

Okay how did you install VS 2022 the first time? From the official website or Unity Hub?

lethal kiln
#

the website

brazen sluice
#

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

lethal kiln
#

k

brazen sluice
#

Hit "Modify", then a list will appear, scroll down a bit and make sure the "Game Development with Unity" package is active

lethal kiln
#

it is

brazen sluice
#

Okay so it's good on that side. You can close the program and open Unity again

lethal kiln
#

unity hub or unity

brazen sluice
#

Unity, the project you were working on

lethal kiln
#

should i use safe mode?

brazen sluice
#

That means you had errors when you closed, so yes

lethal kiln
#

open

brazen sluice
#

Now open the Package Manager (Window > Package Manager)

lethal kiln
#

copy

brazen sluice
#

And make sure the Visual Studio Editor package is installed and up to date

lethal kiln
#

its still loading

brazen sluice
#

The last one, it needs an update it seems

#

Select it and click the Update button at the bottom right

lethal kiln
#

ok

#

updated

brazen sluice
#

You can close the package manager now

lethal kiln
#

yes

brazen sluice
#

Now onto telling Unity to use VS as its code editor

#

Go to Edit > Preferences, External Tools section

lethal kiln
brazen sluice
#

Yes

#

In the first dropdown, select Visual Studio 2022

lethal kiln
brazen sluice
#

Uh

#

Did you put VS 2022 at the top in the fist dropdown?

lethal kiln
#

did i have to use vs code

brazen sluice
#

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

brazen sluice
#

You just posted a screenshot of it

lethal kiln
#

ohh

#

its right there. I am blind

#

done

#

nothing changed

brazen sluice
#

Yep normal for now

#

Close the window and double click the error in your console

#

It hopefully should open VS automatically now

lethal kiln
#

it did

#

now its showing faults and warnings

#

(errors)

brazen sluice
#

Good, configuration is complete now

lethal kiln
#

now, how can i ask for help

#

with screenshots or?

brazen sluice
#

Usually you would post the code as text, but just to confirm, this time only you can post a screenshot of it

lethal kiln
brazen sluice
#

Okay, for the first error in the list, you have one too many } at the end

lethal kiln
#

wich one do i delete

brazen sluice
#

And for the second one, you misspelled the name

#

Remove any of the last two, it doesn't matter in this case

lethal kiln
#

done

#

now it says Severity Code Description Project File Line Suppression State
Error CS1513 } expected

brazen sluice
#

You removed just one, right? Not both

lethal kiln
#

i removed 2 like you said

#

i put 1 back

brazen sluice
#

No, any of the last two I said

lethal kiln
#

ok, its fixed now

brazen sluice
#

Good

lethal kiln
#

the 2nd error is gone

#

is the warning that bad?

#

or can it stay

brazen sluice
#

Yeah, basically you've put the spawnPipe function inside Update, it should be out of it

lethal kiln
#

hmm the video didnt do it

brazen sluice
#

They probably did, it's just a matter of placing the } of Update correctly

lethal kiln
#

ok

#

the screwdriver thing fixed it

brazen sluice
#

In the last screenshot you posted, the } on line 42 should be on line 31

lethal kiln
#

i think the screwdriver fixed it

brazen sluice
#

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

lethal kiln
#

thanks, i know i have been a pain in ass.(sorry) Thanks again

brazen sluice
#

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

lethal kiln
#

ye

brazen sluice
#

I'll close this thread now, have a good day