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
0 votes
0 answers
17 views

Variables set in script/Unity do not work in visual studio

I was just trying to set up an array through Unity when this happened. Basically, I set the array size and values through the Unity Inspector, however, it did not register in VS. I found this out when ...
user avatar
0 votes
0 answers
76 views

How to tell Unreal to use a different Visual Studio Version?

I downloaded Unreal 5 and tried to create a new project. I got this error. An error occurred while trying to generate project files. Running F:/apps/epicGames/UE_5.0/Engine/Binaries/DotNET/...
user avatar
  • 490
1 vote
1 answer
139 views

Unity LoadScene did not seem to work properly

My logic is simple: after conditions are met, display an image (an Image class instance) and restart the stopwatch. After a certain time, reload the scene. In a <...
user avatar
0 votes
1 answer
144 views

Unity with VS Code: .sln generated is missing assemblies. Only .sln generated by Studio works (with Code as well)

After every Unity update I have a lot of problem with missing assemblies in Visual Studio Code. ...
user avatar
  • 627
1 vote
1 answer
125 views

How can I enable intellisense for Stride 3D in Visual Studio?

I have installed Visual Studio and Stride 3D, but, when I'm using Visual Studio it doesn't help me with code recommendations. For example, if I write "Ent" it doesn't show me ...
user avatar
0 votes
2 answers
640 views

Errors displayed even when the project runs in Unity

I work with Unity and Visual Studio. Almost every single keyword is underlined with the red curvy lines (representing error) in all scripts but the game works fine when I play it. I tried unloading ...
user avatar
  • 1
3 votes
1 answer
3k 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 ...
user avatar
  • 490
1 vote
1 answer
180 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 ...
user avatar
  • 133
1 vote
1 answer
376 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 ...
user avatar
0 votes
1 answer
68 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 ...
user avatar
  • 490
0 votes
2 answers
427 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 ...
user avatar
  • 169
0 votes
0 answers
56 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 ...
user avatar
0 votes
0 answers
185 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 ...
user avatar
  • 490
1 vote
0 answers
174 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 ...
user avatar
  • 490
0 votes
1 answer
162 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 ...
user avatar
0 votes
1 answer
196 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 ...
user avatar
  • 490
0 votes
1 answer
267 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 ...
user avatar
1 vote
1 answer
62 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) ...
user avatar
0 votes
1 answer
838 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 ...
user avatar
1 vote
1 answer
990 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 /...
user avatar
0 votes
1 answer
48 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 ...
user avatar
0 votes
1 answer
52 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 ...
user avatar
1 vote
1 answer
877 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 ...
user avatar
1 vote
0 answers
29 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 ...
user avatar
-1 votes
1 answer
273 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 ...
user avatar
0 votes
1 answer
899 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 ...
user avatar
0 votes
0 answers
93 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?
user avatar
0 votes
0 answers
72 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 ...
user avatar
0 votes
0 answers
151 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, ...
user avatar
1 vote
2 answers
4k 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 ...
user avatar
  • 131
0 votes
0 answers
842 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 ...
user avatar
0 votes
1 answer
483 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?
user avatar
0 votes
0 answers
320 views

Need help with a 'Read access violation' exception in an SFML/C++ project:

I'm recently learning to make a 2d game in SFML using a tutorial series on youtube by Suraj Sharma(Video 57): https://www.youtube.com/watch?v=kwd_AVCkvXE&list=PL6xSOsbVA1ebkU66okpi-KViAO8_9DJKg&...
user avatar
0 votes
0 answers
26 views

Prefabs x coordinate of position is getting mysteriously updated after destroying and reinstantiating them

Project brief I am trying to make a gamified version of to-do where the player enters tasks and is rewarded with points and a tree grows with the progress. What I am trying to do I have a list of ...
user avatar
0 votes
0 answers
60 views

How to extract data from a resource compiler script in c#

I need to know how to extract all data from a resource compiler script to a folder or the desktop. the .res files are compiled and added to an exe file. .res is the file extension. and if that is ...
user avatar
1 vote
1 answer
860 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. ...
user avatar
1 vote
1 answer
48 views

Can't open scripts in Unity 2019.2.11.f1 version

I'm using Visual Studio 2017, Unity Hub to 2.1.3 and just created a project using Unity's 2019.2.11.f1 version. Once trying to open a script in Unity, it doesn't open and then I'm forced to use Task ...
user avatar
0 votes
0 answers
57 views

Need help with a Lnk2019 error in an SFML/C++ project

I'm currently making a 2D video game using the SFML library on Visual Studio 2019 community with the help of a Youtube tutorial series by Suraj Sharma: https://www.youtube.com/watch?v=IdKZpv6xqdw&...
user avatar
0 votes
0 answers
43 views

Need help with sluggish sprite movement in an SFML-C++ project:

I've recently bought an SFML course on Udemy.The course is teaching me to make a game where you are chopping a tree while avoiding falling branches. Right now i'm learning to animate moving clouds ...
user avatar
0 votes
1 answer
3k views

Need help with an 'Exception thrown:write access violation:this was nullptr' in a c++ - SFML project

I'm currently learning how to program a 2d game with SFML using a tutorial series by Suraj Sharma.This's his channel: https://www.youtube.com/channel/UC2i39AOpDSlO1Mrn1jQ8Xkg The tutorial series: ...
user avatar
0 votes
1 answer
3k views

Need help with a C26495 warning and E0513 error in a C++ SFML class

I'm currently learning to program a game with the SFML library.I dugged up a bunch of SFML tutorials on Youtube and found a really good one by 'Suraj Sharma': https://www.youtube.com/channel/...
user avatar
0 votes
0 answers
31 views

Getting a control name/Displaying tooltip text

I am developing a character creator using Windows Forms (because apparently I can't create menus in Unity), and I want to display some tips and descriptions in a ...
user avatar
1 vote
1 answer
185 views

SpriteBatch.Draw has Padding on Monogame.Android

I am using Monogame to create a small Android game. I am trying to draw a sprite to the Android screen but it seems to have a padding of some pixels. The same game works fine on desktop. How can I ...
user avatar
  • 91
0 votes
1 answer
253 views

Intellisence doesn't show the ECS API Summaries

I am not sure if this is more of an ECS topic problem or packages in general. but it would be really helpful for ECS programming with all the summaries the Unity has provided. For unity engine methods,...
user avatar
  • 1,126
0 votes
2 answers
49 views

Find out reason for automatic break

Soon after I press the Play button, the Unity break button automatically gets activated: Unity gets into Pause mode: I have attached the Unity debugger to my C# code, but Visual Studio doesn't break. ...
user avatar
  • 821
2 votes
2 answers
574 views

How game engines generate single executable games?

I was taking a look at Cryengine's and Unreal's code and when built both engines generates lots of dlls. Inside Cryengine's System code I could see that it calls LoadLibrary to load the dlls and ...
user avatar
0 votes
1 answer
243 views

ForceMode in AddTorque in Unity game development

In UNITY game development platform while programming in C# I came across a method to add torque to component: public void AddTorque(float x, float y, float z, ForceMode mode = ForceMode.Force); In ...
user avatar
0 votes
2 answers
491 views

How to get past Visual Studio "Setup Error" for Unity development?

When I launch Visual Studio from Unity on my laptop, I get the following error: Setup Error The setup for this installation of Visual Studio is not complete. Please run the Visual Studio Installer ...
user avatar
0 votes
1 answer
57 views

VS2017 (and 2019) Community Intellisense only showing part of the Unity class/method information, missing descriptions

If I hover keywords like Input.GetKeyDown, for example, I know it should tell me something about using it for autofire. I get autocompletion and the syntax ...
user avatar
  • 1
5 votes
1 answer
2k views

How can I launch Visual Studio via a double-click on a C# script in Unity?

This is my first time using Unity and I am following the tutorial for the 2D RogueLike Game. Everythings seems to be working properly, apart that I cant get Visual Studio to launch, if I'm double ...
user avatar

1
2 3 4 5