
What is a NullReferenceException, and how do I fix it?
I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance of an object. What does this mean, and what can I do to fix this error?
Unity UI button not reacting to clicks or hovering
30 I'm using Unity 3D's new UI system to build a pause menu for my game. Currently I'm trying to have my buttons respond to mouse clicks. Some of my hierarchy is as follows: When I click on one of my …
Unity - How to stop Play Mode in case of infinite loop?
Actually I wasn´t able to do anything else with Unity until I restarted it. My question is, does anyone know how to stop the Play Mode in Unity gracefully? Is there any shortcut or some lines of code to force a …
How to make the script wait/sleep in a simple way in unity
There are many ways to wait in Unity. They are really simple but I think it's worth covering most ways to do it: 1.With a coroutine and WaitForSeconds. This is by far the simplest way. Put all the code that …
Unity - how to make material double sided - Stack Overflow
Search for the issue gives a number of solutions, but they don't work for some reason in mine Unity3D 5.4. Like camera inside a sphere I do not see cull and/or sides in material in Unity editor. ...
Sending http requests in C# with Unity - Stack Overflow
How can I send HTTP GET and POST requests in C# with Unity? What I want is: send json data in post request (I use Unity serializer, so no need in new one, I just want to pass a string in post data...
unity game engine - Accessing a variable from another script C
I have even read everything in unity website but I still can’t do it. I know how to access another object but not another variable. This is the situation : I’m in script B and I want to access the variable X from …
Rotate object in Unity 3D - Stack Overflow
transform.rotation = Quaternion.LookRotation(Input.acceleration.normalized, Vector3.up); But i would like to rotate object like for example screen is rotating - 0, 90, 180 and 360 degrees. How can I do it …
c# - Unity - pass parameters on instantiation - Stack Overflow
Unity - pass parameters on instantiation Asked 8 years, 9 months ago Modified 6 years, 10 months ago Viewed 32k times
Unity Hub "Install failed: Validation failed" message whenever I try to ...
Jul 19, 2023 · The issue is that then when I try to connect Unity to Visual Studio Code, it doesn't fully connect and features like IntelliSense don't work. I suspect this is because I didn't install from Unity …