How to setup Visual Studio with Unity - Tutorial

preview_player
Показать описание
Take advantage of awesome Visual Studio features by properly integrating UnityVS into your project.

····················································································

Difficulty: Beginner to Intermediate.

····················································································

····················································································

► All content by Brackeys is 100% free. I believe that education should be available for everyone. Any support is truly appreciated so I can keep on making the content free of charge.

····················································································

♪ Baby Plays Electro Games
Рекомендации по теме
Комментарии
Автор

FOR ANYONE STARTING UNITY IN 2020, PLEASE DO THIS BEFORE WRITING ANY SCRIPTS:

Unity and Visual Studio will sometimes have a compatibility issue where something called Intellisense does not work. Intellisense is your code completion, and much more. It should be fixed immediately.

Step 1:
Close Visual Studio

Step 2:
In Unity, go to Edit < Preferences < External Tools (left part of the Window)

Step 3:
In External Tools go to the part that says External Script Editor (this should be on which ever Visual Studio editor you are using (for me it defaulted to "Open by File Extension"

Step 4:
Make sure Generate all csproj files are checked, and Editor Attaching is checked

Step 5:
Open the C# script you were trying to open earlier.
I copied it from mEmEMan as i was facing this problem

dontknow
Автор

Man, can you just remake this video for folks starting in 2021 when everything's quite different.

mohammedrangoonwala
Автор

And I remember when you only had 16 thousand subs. Congrats, brackeys.

tophatvortex
Автор

Hi, I just want to thank you for this very helpful video. I've been following Brackeys since last year and I learned a lot from these videos. Please keep doing what you are doing. You are definitely the top 1% of unity tutorials from all sources online.

moshiwei
Автор

after 5 years this video helped live long king

abedmerhi
Автор

hm... It says after I import it that I need to check my external aplication preferences.... help?

jackthake
Автор

Thank you sooo so much! I couldn't open c# in unity, im new to unity and this helped soo muchh thank you!

opanimations
Автор

you are great man, i'd like to spend my life watching your videos

mahmoudanwer
Автор

Thanks in a million! Very well explained. This is the nth time that I am watching this again. Great content. Awesome. I couldn't find this explanation--simply put anywhere else. “Great teachers are hard to find”. Grade: A++ 💥

johng
Автор

This is from 2015
.
You don't have to do any of this any more
.
Just go to your install in the Unity hub, click the ..., Add Modules, and then add VS from there
.
Just make sure in Unity Edit > Preferences > External Tools > External Script Editor has Visual Studio set correctly when you're done.

vertxxyz
Автор

I've noticed that there isn't many third person shooter tutorials on the Internet. I would greatly appreciate it if you could create a series on it. I've wanted to make a third person shooter for a long time.

jacobbarrett
Автор

Can you tell us what we will notice when making the switch from Monodevelop to VS? Like, will there be any functions or features of Mono that we no longer have access to?

Shablo
Автор

Hitting breakpoint works great when I run from unity(play button) but when I run in my mobile (build and run) it doesn't work. Any ideas?

EdwinCloud
Автор

Yes! Extremely useful and well done. Place keep it updated if posible.

SoaringSimulator
Автор

If you got problem with extensions and importing classes from Unity then read this . I'm using VS 2019 so i went to VS installer and get extension for Unity. Then I went to Unity and made few steps :
Edit > Preferences > External Tools then I chose Visual Studio Community as main editor. Checked only local packages . Now everything works fine as it should. Just remember to set up Visual Studio with Unity.

Bugstersky
Автор

Thanks a lot for this one. I was wondering something though, is it possible for you to upload the drag scene with its code? I would really appreciate :)

TuxMathLanGame
Автор

A little over a year and this is already outdated. Warning, don't follow this tutorial, it doesn't work anymore.

Chris-yjdi
Автор

I check this tutorial and I noticed that now it is not neccessary to install the UnityVS tolos, because the same unity on the 5.4 version after you install the Visual Studio 2015, you can select it on the Edit->Preferences->External Tools on the IDE, the Visual Studio 2015 will appear automatically on it to select and it will work just well.

ogr
Автор

wow
thank you very much for this amazing tutorial

knowledge
Автор

@Brackeys Thanks for the tutorial! In the latest version of VisualStudio (2017). Do you have to do all of this?

georgiby