Skip to main content
Share Your Experience: Take the 2024 Developer Survey
21 votes

How can I get rid of "missing DLL" problems?

You need to install the redistributables for the version of Visual Studio you used on any machine that wants to run the executables, e.g. https://www.microsoft.com/en-us/download/details.aspx?id=48145 ...
Sean Middleditch's user avatar
8 votes

Unity: "inconsistent line endings" dialog shows up ever time I open VS with unity

End-of-file (EOF) | Line ending, end of line (EOL) As Josh Petrie mention, you can solve the problem by changing the line endings of each script you open. First, you need to close the script in ...
Alan Mattano's user avatar
7 votes

How can I get rid of "missing DLL" problems?

I use Dependency Walker to track down missing DLL's: Dependency Walker is also very useful for troubleshooting system errors related to loading and executing modules. Dependency Walker detects ...
Leftium's user avatar
  • 4,423
6 votes

How can I get rid of "missing DLL" problems?

For Visual C++, you have a few choices of how to handle the redistribution: run an EXE from your installer (with admin rights), use a MSM merge module with your MSI installer, or even side-by-side ...
Chuck Walbourn's user avatar
6 votes

No project in visual studio using unity created

Happened to me too. Solved it by setting Visual Studio as the default 3rd party tool as scripts editor in Unity's preferences.
ArtS's user avatar
  • 161
6 votes
Accepted

Visual Studio not recognizing Unity's new Input system

I found the answer online! I had to go to the editor preferences (Edit -> Preferences) and under External Tools, there's a section with checkboxes under "Generate .csproj files for:." ...
Millard's user avatar
  • 500
5 votes

Why is the IntelliSense not working when I open a new script in Visual Studio?

The Solution shows that script under "Miscellaneous Files" This suggests that it hasn't been added to the project. Try manually adding it via the Project menu or dragging it into the appropriate area ...
Jimmy's user avatar
  • 9,019
5 votes
Accepted

No project in visual studio using unity created

It seems there is a problem with asmdef files in Unity 2018 with Visual Studio 2017, you'll need an update. https://developercommunity.visualstudio.com/content/problem/88183/error-when-unity-...
Lexicon's user avatar
  • 251
5 votes
Accepted

Error: not all code paths return a value

"Not all code paths return a value" means that inside a function that's supposed to explicitly return something (ie. it's not void or a constructor/IEnumerator), ...
DMGregory's user avatar
  • 135k
4 votes

Why is the IntelliSense not working when I open a new script in Visual Studio?

All you have to do is click on the assets folder in your solution explorer and click on the refresh button.
StrengthPlusPlus's user avatar
4 votes
Accepted

Nuget in Unity with Mac OS

While there's no built-in support for NuGet yet, this might change soon since a lot is happening in this regard. With Unity 2018.1, .NET Standard 2.0 finally got supported. This is a huge deal since ...
qCring's user avatar
  • 620
4 votes
Accepted

Upgrade to Unity 2018.2.2f1 resulting in missing file errors from Visual Studio

It turns out I did have all 45 files, but they were nowhere near the project folder VS was trying to find them in. They were in ...
Nightmare Games's user avatar
4 votes

Can I contribute code to an Unreal game without running the engine on my system?

Code is just text files. You could write Unreal engine code in anything that can write text - even your phone's SMS app if you wanted, but the workflow would be a nightmare. Especially as you're first ...
DMGregory's user avatar
  • 135k
3 votes

How to build a C# library for Unity as a pure Visual Studio project

It's very simple; all you need to do is start a new class library project. Then, add a reference to the UnityEngine DLL. By default, it should be in C:\Program Files\Unity\Editor\Data\Managed\...
WindyKeeper's user avatar
3 votes

Detect camera collision in OpenGL without using bounding box

OpenGL is a graphics API, whose sole purpose is shoving triangles to your screen. It does not do collision detection, at all. If your maze has orthogonal walls, an axis-aligned bounding box is ...
Quentin's user avatar
  • 1,178
3 votes
Accepted

Using a single square sprite to create tetris-like objects

Couple of things. First and foremost you should only load your texture once like this: Texture2D squareTex = Content.Load<Texture2D>("square"); And then ...
Mikael's user avatar
  • 444
3 votes
Accepted

C# Script file is not showing in Onclick Event in Unity 5.0.4f1?

You need to add the LevelLoader script to the LevelLoader object in the hierarchy panel. Then drag the entire LevelLoader object (not script) from the hierarchy ...
House's user avatar
  • 73.2k
3 votes
Accepted

Unity solution not compatible with Visual Studio

Turns out it was an issue with my existing install of Visual Studio Tools for Unity (VSTU). I found a thread where users had experienced similar problems due to an unsupported version of VSTU running ...
David Greaves's user avatar
3 votes
Accepted

Force Reload VS soution Explorer when adding new c# Script via Unity3d?

So, what we have. Developer from the VS Tools for Unity team said that it is one of their most voted feature requests. And it's surprisingly not trivial to fix, ...
Alexey Shimansky's user avatar
3 votes
Accepted

Thrown exception pointing to xmemory0

Variables and objects in different translation units (c++ / object files) do not have a guaranteed initialization order. It is possible that your std::vector is being used by another global (or ...
Stephane Hockenhull's user avatar
3 votes
Accepted

Do I lose any functionality using Visual Studio for Unity 3d?

Visual Studio is becoming the most fitted IDE in order to develop with Unity. You won't loose anything in comparison to MonoDevelop. You will still have autocompletion, debugging tools, documentation ...
Hellium's user avatar
  • 2,949
3 votes

Getting error when following learnopengl.com "Hello Window" Tutorial; how can I fix them?

TL;DR: #define GLFW_INCLUDE_NONE before including GLFW, or include glad bfore including glfw. When you get these errors, the first thing to do is search for where ...
Jimmy's user avatar
  • 9,019
3 votes

Unity3d - Attach to Unity not working

Answering comments (still can't comment): I only had to do it for one script. If that didn't work, you can try "Assets -> Reimport All", since it's supposed to fix corruptions in your project. ...
Vitor Ramos's user avatar
3 votes

is if statements important or do I need them

#if isn't the same as a regular if statement, it is what's called a preprocessor directive. In C & C++, preprocessor ...
Pikalek's user avatar
  • 12.4k
3 votes
Accepted

Game not responding on different computer with Intel graphics

After I gave my rendering code another look, I noticed that I was using glCreateVertexArrays and glCreateBuffers instead of glGenVertexArrays and glGenVertexBuffers. While they do the same thing, ...
Eric's user avatar
  • 41
3 votes

Visual Studio can't handle my unity scripts

Seems you don't have the Unity plug-in for VS Community. The project should open as a C# assembly project like the following. It's in tools and features, go get it. Good luck.
suvam0451's user avatar
  • 171
3 votes

Visual studio alternatives for unity as intellisense not working

Are you sure that Unity Tools for Game Dev is unavailabe in VS Community? It should come with the Unity install file but can also be found from the Visual Studio Installer. Also it would help if you ...
DominoDev's user avatar
  • 126

Only top scored, non community-wiki answers of a minimum length are eligible