About 513,000 results
Open links in new tab
  1. How to make the script wait/sleep in a simple way in unity

    In Unity when exiting Play mode and returning to Edit mode you can make use of EditorApplication.playModeStateChanged specifically PlayModeStateChange.EnteredEditMode and/or PlayModeStateChange.ExitingPlayMode at which point you can Cancel your tasks. I plonk all this in my class EditorWatcher...

  2. Unity: Conflict between new InputSystem and old EventSystem

    Nov 26, 2020 · You probably tried to import a new input system package for multiple input devices compatibility. These type of errors are due to conflict between old and new input system packages and are probably resolved in latest updates. To resolve this issue, Go to Edit -> Project Settings -> Player ->Under Other Settings under Configuration is the option Active Input Handling. …

  3. Unity, rotating a Vector3 along an axis - Stack Overflow

    Dec 22, 2022 · For example, I have a Vector3 and I waant to rotate it relatively Y-axis (Vector3.up). Can I do it using built-in methods, or should I use coordinate geometry and trigonometry?

  4. 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 from Unity Hub and the IDE isn't fully recognizing my Unity install.

  5. Can't open a project in unity, because it keeps loading infinitely

    Reinstalling Unity and Unity Hub are just desperation steps. Opening a project doesn't modify either installation and if it was corrupted in some way it's unlikely everything but loading your specific project would work.

  6. 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 keep or pass to the next scene inherits from Object, Component or is a GameObject. This solves the problem described in 1A and 1B.

  7. How to change text by script in Unity - Stack Overflow

    May 6, 2021 · Here in Unity, you have a component-oriented design. Text and Button are just Components of GameObject entities. Most parts of your game scripts are also Components that are attached to GameObject. This is a core concept you'd need to realize when you come from JS. In short, to change a text by clicking the button you need: 1) Create a GameObject with a …

  8. download - Unity: Editor application Install failed: Unity Hub does …

    Nov 8, 2022 · I have tried repeatedly without success to install a late version of Unity (2021.3.13f1 and 2021.3.12f1) from Unity Hub 3.3.0 on my MacBook Pro 16 (running macOS Monterey version 12.6). Consistentl...

  9. Wait for a coroutine to finish before moving on with the function …

    Jun 4, 2017 · I was working on making a unit move through a grid in Unity2d. I got the movement to work without problems. I would want the function MovePlayer to wait until the coroutine is finished before movin...

  10. Unable to install any Unity version from Unity Hub

    Dec 8, 2019 · 2 I'm looking into learning to use Unity, so I've downloaded the Unity Hub as it seems to be the way Unity is forcing us to download their versions from now on. The problem with this is that, every time I try to download any version of Unity through the Hub, I get a message once the download bar has completed along the lines of: