-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Visual studio for Unity, how can i detach it to run the file? #84
Comments
Did you open the project by double clicking the solution file(Chess-Challenge.sln)? If not, try doing that. |
No, but now i did and it works. Its the first time i participate in something like that :) |
Im having the same problem, but when opening the project through the Chess-Challenge.sln it simply brings up a blank Vs code screen that does nothing, how is it supposed to work and how is one supposed to properly build and run their code, the directions on the read me simply read "build and run" without any further instructions and being new to the area this is very hard to understand |
@CharlesBeverly You need to use Visual Studio. VS and VSCode are two very different software packages. There are ways to make this work with VSCode too (see #85), but using VS will just reduce the friction. |
@akamegakira if your original problem has been resolved can you close this issue? |
@ufrshubham i have the same thing, but i am new too, so i supposed that this is how it was supposed to be since if i press the triangle it runs. Are we certain that a .sln file should have something appearing as a code file? |
@ufrshubham i finally think i had success!!!
the code is stored in the .cs files, so you can change and read whatever you want |
@akamegakira glad that you figured it out. Here are few more details about Visual Studio is not just a code editor, it has a lot more features to it. It be used to open and modify a single file, but in most cases any kind of application is made up of multiple files. For example, a Unity project consists of multiple Scriptable Objects, Prefabs, Scenes, etc, you get the point. Similar to that an application written in C# also consists of multiple C# files (aka source code or code base or project). To make it easier to maintain, build and debug this source code, you use IDEs (integrated development environment). Visual Studio is one of such IDEs. To open a project, an IDE needs to know all the files, their locations, their type and a million other things. All this information is stored in IDE specific project files. For Visual Studio, Btw, Also, this is very common for a lot software packages. For example,
In context of Unity, it creates a Visual Studio solution for all your C# scripts. And it does a very good job of abstracting all the Visual Studio specific things from the users. It is good for newbies, but then it also results into producing game developers that can make games using Unity C# without fully understanding the C# and .Net part of things. Its kind of a double edges sword 😉. |
I have been using visual studio only for unity, and when i want to run the script, i only have the option "attach" next to the green triangle.
Does anyone know how to fix it?
The text was updated successfully, but these errors were encountered: