About 567,000 results
Open links in new tab
  1. 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 …

  2. 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 …

  3. 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. ...

  4. 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 …

  5. 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 …

  6. Unity/C# Find object and get component - Stack Overflow

    Unity/C# Find object and get component Asked 11 years, 9 months ago Modified 6 years, 11 months ago Viewed 29k times

  7. 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?

  8. 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 …

  9. In Unity, how can I pass values from one script to another?

    Dec 15, 2012 · 31 In Unity, I want one object to have a falling speed variable that all the other objects can access. For various reasons, I can't use the inbuilt gravity for what I'm trying to do. How can I …

  10. Unity3D : Blur the background of a UI canvas - Stack Overflow

    I'm trying to create a blur effect on the background of a UI window for my game in Unity3D. One of the best examples I can think of right now is Heroes Of The Storm, notice how the background of the