C
C#2mo ago
Casper 1.0

why is my code weird??

Hello, i'm really new to game dev so i'll make it quick, i'm startting to learn with this videos of Pandemonium and i'm getting to the code part, i'm using Visual studio for the code but i think i missed something, i couldn't find why avent after double checked
No description
16 Replies
ero
ero2mo ago
you haven't set up unity to recognize visual studio as your editor
Casper 1.0
Casper 1.0OP2mo ago
i did
No description
ero
ero2mo ago
have you installed the necessary unity workloads in vs? have you tried restarting both apps?
Casper 1.0
Casper 1.0OP2mo ago
what do you means by workloads? i did, its been like this for a while i think
ero
ero2mo ago
what it says. open the visual studio installer and modify your vs 2022 installation
Casper 1.0
Casper 1.0OP2mo ago
oh yeah, i aleready done this! (its french i'm sorry)
No description
ero
ero2mo ago
hm. last thing that comes to mind is the things you have checked here. this page shows more things selected, but i won't blindly recommend you check random things without knowing what they do in any case you can ask in $unity, which will likely be more helpful
Casper 1.0
Casper 1.0OP2mo ago
yes, thank you for trying tho !
Buddy
Buddy2mo ago
$unitybug
MODiX
MODiX2mo ago
If intellisense is not working for Rider / Visual Studio, follow these steps.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or JetBrains Rider) as your preferred editor.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or JetBrains Rider) as your preferred editor.
Close the editor and re-open it again by double-clicking a script file.
Buddy
Buddy2mo ago
@Gasper 1.0 Oh, they had done it already Then restart unity and after that regenerate the csproj
Casper 1.0
Casper 1.0OP2mo ago
Yep 😅 How do you do it?
Buddy
Buddy2mo ago
Its this button
No description
Casper 1.0
Casper 1.0OP2mo ago
Oh ok i'm trying it dosn't work and it crashed ..lol
FusedQyou
FusedQyou2mo ago
💡 IDE Configuration If your IDE is not autocompleting code or underlining errors, please configure it. Select one: • :visualstudio: Visual Studio (Installed via Unity Hub) • :visualstudio: Visual Studio (Installed manually) • :vscode: VS Code • :rider: JetBrains Rider • ❓ Other/None @Gasper 1.0

Did you find this page helpful?