About 431,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 …

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

  3. Newest 'unity-game-engine' Questions - Stack Overflow

    In Unity, I have an idea for a simple game where, if a child object collides with an object tagged "wall" and presses the W button, the parent object moves towards the collided object. ...

  4. multithreading - Thread safety in Unity - Stack Overflow

    Feb 16, 2017 · In Unity, the thread cannot operate the object provided by UnityEngine like transform.position etc, which caused an exception that get_transform can only be called from …

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

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

  7. Unity Hub "Install failed: Validation failed" message whenever I try …

    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 …

  8. Unity | mesh.colors won't color my custom mesh object

    Unity | mesh.colors won't color my custom mesh object Asked 6 years, 6 months ago Modified 4 years, 4 months ago Viewed 10k times

  9. How to pass data (and references) between scenes in Unity

    Unity will always destroy its Object even if they are declared with the static keyword. See #2 for a workaround. 2.Use the DontDestroyOnLoad function. You only need to use this if the data to …

  10. Unity - Rotate an object around a point in 2D - Stack Overflow

    Jun 28, 2018 · I've been working on a 2D game in Unity and I need to find a way to rotate a sprite around a certain point. I know that for 3D games, Unity has a built in transform.RotateAround() …