Questions tagged [visual-studio]

Visual Studio is an integrated development environment (IDE) from Microsoft. It supports many different programming languages.

Filter by
Sorted by
Tagged with
1
vote
1answer
107 views

OpenGL - Debug version runs faster than Release version

My Visual Studio 2019, 64-bit version of Tetris using OpenGL runs significantly faster, 3X, in Debug mode than in Release mode. The image above shows the board. Each cycle of the rendering or game ...
0
votes
1answer
313 views

Convert a string to a gameobject name

I want to use a string to reference a gameobject that I already have in my code, but the console says that you can't convert a string to unityengine.object. I have a string that says ...
0
votes
1answer
2k views

How do I install SDL.NET in Visual Studio 2010? (Or any other .NET library) [closed]

I'm trying to get SDL.NET to work in Visual Studio 2010, but am really not sure how to go about installing the library (or creating a custom project or something), and any basic instructions would be ...
0
votes
1answer
132 views

DXUT getters are always null using DLL

I'm struggling with a problem for a while and I hope some of you can help me out. The title for this question is vague, so I will try to explain my problem as best as I can! I'm am creating a project (...
1
vote
1answer
292 views

How do I prevent my game from being detected as a virus?

I developed my own game engine and I'll refer to it as a Software Development Kit (SDK) here, for making a specific type of game. The SDK encapsulates low level DirectX APIs. It's written in C++ and ...
0
votes
2answers
91 views

Visual Studio draws red underlines (“squiggles”) on anything in the UnityEngine namespace

I work with Unity and Visual Studio 2019 and I have 4 scripts in my project. I was getting almost every single keyword underlined with the red curvy lines (which shows that it is an error) in all ...
2
votes
1answer
154 views

Visual Studio not recognizing Unity's new Input system

I'm attempting to learn Unity's new input system, but when I try to add using UnityEngine.InputSystem; to my code it gets a red squiggly line under it. It doesn't ...
0
votes
1answer
71 views

Visual Studio not adding the header file to the Solution explorer

I'm having trouble with my Unreal Visual Studio 2019 project. I created a new header file, and saved it in the same folder my other ones are in. (I didn't add these, they were in the starter project ...
1
vote
0answers
21 views

The name 'txt' does not exist in the current context [closed]

I am getting the error The name 'txt' does not exist in the current context and I am unsure why this is happening. I am very new to programming in C# so sorry if ...
0
votes
1answer
113 views

I already have a GameManager script, but need to have a 2nd one

I'm making a Unity game, and I want to use the Unity Distribution Portal. My problem is that you have to make a script named GameManager for this, but I already ...
0
votes
0answers
16 views

UnityEditor.SyncVS.SyncSolution putting wrong language version in generated files

I'm working on getting our Unity projects building in bamboo for our build server. We have a cli step that runs through the Unity commands for creating a build. It works fine on several projects, but ...
3
votes
1answer
214 views

Synchronization problem with Visual Studio 2017 and Unity 2017.1.1f

Sometimes I need to change a lot of files and Clean and Rebuild the Solution to get the changes on Unity, am I missing some configuration on Visual Studio or Unity? I uninstalled everything and make a ...
0
votes
2answers
177 views

Full-screen window hangs when debug break or crash (Windows/GLFW/Cocos2D)

I run into an issue if my game application becomes unresponsive when running in fullscreen on Windows. This mostly applies when I want to use breakpoints in Visual Studio, however if the application ...
1
vote
1answer
138 views

Why I don't have the DX templates even with the Windows 8 SDK installed?

I have Windows 7, 64 bit. I installed the Windows 8.1 SDK from here, and I installed Visual Studio Ultimate 2013. I chose to install everything; the size of the install was around 11GB. Yet I don't ...
0
votes
1answer
133 views

cant add unity scripts to obects “unity_csc.bat not found. Is your Unity installation corrupted?”

I got a new computer and on it I installed unity and signed in etc. when I load it up however and try adding scripts to objects in the scene it doesn't add them and has this error: "cant add ...
0
votes
1answer
30 views

Calling a function from Super is getting an error

I am following GameDev.tv's unreal C++ course, but I am getting an error that is causing my compiler to fail. I'm coding a player controller, and I think I followed all the steps right but when I ...
0
votes
0answers
41 views

Unity Text Mesh Pro can not get referenced in VSCode

I am using Text Mesh Pro in my Unity 2019.3.4f. The TMP works fine in unity, but in the code editor, Visual Studio Code, the TMP related things are marked with red wave underline, which means the ...
0
votes
0answers
33 views

How to save Unity assests to another drive?

My C:\ volume has almost no space left. Therefore I want to transfer all my assets to the volume E:/. And save my new assets automatically on the E:/ volume. I have searched very long in unity for ...
0
votes
0answers
49 views

What does rebuilding the .vcxproj file do?

I'm having the same problem this user had. The solution is confusing me, because all I want to do is comment out the code I added that caused the compiler crash, get Unreal to accept it and stop ...
1
vote
0answers
58 views

Unreal Visual Studio 2019 taking forever for tellisense

I'm using the latest unreal engine and visual studio 2019. I'm having a problem where intellisense can take way too long. This usually happens when I have just opened the project inf VS 2019, but ...
0
votes
1answer
61 views

Unreal Engine 4 - Error in Macro Syntax Causes Build to Hang

Problem Errors in macro syntax causes the module's build to hang for 2+ hours (possibly, indefinitely) with no indication of a build error. Steps to Reproduce Create a template game project in the ...
0
votes
1answer
146 views

VSSetConstantBuffers1 does not appear to be working

I'm experiencing something very strange here when using VSSetConstantBuffers1. I have a projection * world matrix that I'm sending to a constant buffer to rotate a triangle on an axis. When I do ...
0
votes
0answers
26 views

How to Use/Initialize UDP (Unity Distribution Portal)

I would like to use UDP (which stands for Unity Distribution Portal) in my game, but I have a problem with the Initializing. What i´ve already done is: Downloading/Importing UDP from Unity Assets ...
0
votes
0answers
92 views

How to use the latest MongoDB C# driver with Unity?

I recently updated my Unity 2018 to the 2020 version then I created a new project to connect my game to a MongoDB database. My main goal is to be able to store not only common data in my collection ...
0
votes
1answer
37 views

Publish to folder equivalent for a desktop GL project with visual studio Mac 2019

I'm not home so the only computer I have access to is a Macbook, and now I would like to see how I could pack up projects to export for various platforms. But when I build my project it only produce a ...
1
vote
1answer
52 views

How can I let the user choose his own background image?

Dear Stackoferflow Fourm I would like to have a function in my Android Game Programming that allows the user to choose his own background image (I would like to let the user change the plane image) ...
1
vote
2answers
194 views

Are closing window and destroying DirectX11.1 independent?

I have a project with DirectX support. In this program uses two threads. One is a dedicated message loop and the second is executing DirectX API's. The question is about ending such program. The ...
0
votes
0answers
70 views

Every X months Visual Studio Code says: 'UI' does not exist in the namespace 'UnityEngine'

I've tried countless fixes in the last 1,5 year, and I still don't know what is the absolute fix for this. Or after fixing it, why it got fixed. Usually this happens after a Unity update, or after ...
1
vote
2answers
610 views

Why is my call to SetDisplayMode not supported?

I have some legacy DirectX code that always returns DDERR_UNSUPPORTED. I originally developed the code using DirectX3, and I am porting it to DirectX7 after ...
0
votes
1answer
243 views

UE4 C++ - Add generated source code folders to Visual Studio solution?

In Unreal Engine 4, using a Visual Studio solution and projects generated from the Editor using the First Person Template, the layout of the Solution looks something like the following: I am not a ...
7
votes
5answers
13k views

No project in visual studio using unity created

As I have sometimes problems with intellisense in visual studio using unity, I searched for some answers. It was almost everytime pretty much the same: Reloading the project. But in my solution ...
1
vote
1answer
430 views

Can't build UE4 new mod kit - UGCExampleProject - UE4

I am trying to build the new mod kit to support modding for my new game. I am following the QuickStart Guide: Place your project in a directory under your UE4 root directory (such as /Games or /...
0
votes
0answers
397 views

Can't build UE4 sln after regenerating it from uproject file

I was having issues with code, so I decided to regenerate my projects SLN file, and then rebuild the whole project. It was a really bad idea, I can't even open my project again. Anytime I try to start ...
10
votes
3answers
17k views

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

Everytime I open a script file from unity with visual studio this dialog shows up about normalizing the line endings? What does this mean? I click Yes every time but still can't get rid of it. It only ...
0
votes
0answers
11 views

How to add a “High Score” [duplicate]

...
0
votes
1answer
49 views

Character bobs when moving

Whenever I try to move a character in unity, the character kind of, like, bobs around when walking. Is there any way to remedy this? I have tried the trick of putting the inputs into update and the ...
0
votes
1answer
348 views

How to set C++ language standard for VS2019 in an Unreal project?

I am trying to a simple thing, just like that, in a header file; #include <filesystem> #include <iostream> namespace fs = std::filesystem; And ...
1
vote
0answers
25 views

Unity problem with instantiated objects when destroyed

So this is my problem, I have a square that when destroyed spawn 4 smaller squares when shooting on it, but when I shoot one of the 4 smaller squares sometimes a different square that are not even ...
-2
votes
1answer
107 views

How i can detect a single ARuco marker among several markers?

Hi everyone i am working on a rehabilitation application that depends on ARuco markers. The idea is to draw an object on a single marker among the four existing ones, then when the patient's hand ...
1
vote
1answer
2k views

Issue importing TileMaps/TileSets in Monogame.Extended 1.0

I've just started coding my first ever videogame using Monogame/Xna. I've reached a point where I would like to start editing maps and importing them into my game using the program Tiled. After ...
0
votes
0answers
64 views

How to speed up script compilation?

Is there a way to speed up script compile time when I change something in VS then click on Unity? It takes 15 seconds. Is this normal?
0
votes
0answers
57 views

When set Visual Studio as external editor tool, Unity will freeze (macbook version)

So I want to link visual studio and Unity, but if I set vs as the external editor tool and open a script, after I open a script for around 1 minute, Unity will freeze and I can't do anything but quit ...
0
votes
0answers
57 views

How to convert world coordinates to grid movement

I'm producing a tactical 3D RPG game and I have the following issue: I want the NPC to move through the grid. The grid is formed by tiles and each tile has a script attached to it. In this script, ...
3
votes
2answers
3k views

Unreal engine how do I change the visual studio version without having loaded up a project?

I get an error which I mentioned in a previous post. I did a little more research on this error and found out that I need to use an up-to-date visual studio. I think that I might need to change the ...
1
vote
1answer
583 views

Why are Visual Studio and VSCode not giving me a dropdown list of methods and options etc?

I am using VSCode but I have also tried Visual Studio 2019 to write code for Unity, but when I'm writing the lines I don't get dropdown menus with for example the methods this class holds. Or objects. ...
0
votes
2answers
2k views

How to generate .sln files manually in Unity

I'm using git with a Unity project of mine. I'm working on my home machine and also on one at school. I started it at home and it works perfectly on my machine. Once I cloned it at school it opened ...
1
vote
1answer
414 views

I want to test the Animator component of a gameobject using nunit, but I am having issues

I made a Blender 3D model with animations. Then I used the Animator Controller, and attached it to the model. The Animator Controller has a few Boolean parameter variables like ...
0
votes
1answer
910 views

Why do I get 'Input Assembler: “No mesh available for stage”' error?

My question is basically why VS2012 tells me that there is no mesh available for the Input Assembler stage because if I click on the DeviceContext next to the Draw call in the Grahics Event List the ...
0
votes
0answers
455 views

Unreal doesn't see Visual Studio 2019

I have Visual Studio 2019 installed, with all of the tools mentioned in the Unreal documentation installed, and when I try to create a C++ project in Unreal Engine, I get "No compiler was found. In ...
0
votes
1answer
432 views

Visual studio alternatives for unity as intellisense not working [closed]

I am new to unity and unity tools for game dev are unavailable in vs community,i also tried vs code.So what are some alternatives for vs for unity scripts for a beginner?

1
2 3 4 5