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

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

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

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

  5. Customizing .csproj in Unity enable nullable reference types

    Oct 6, 2020 · The default way to opt in to this language feature is to put <Nullable>enable</Nullable> in your .csproj file, but Unity regenerates .csproj and removes this line every time it compiles. Is there a …

  6. c# - Unity camera follows player script - Stack Overflow

    Jan 20, 2021 · Unity camera follows player script Asked 4 years, 11 months ago Modified 1 year, 7 months ago Viewed 111k times

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

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

  9. How to Rename a Unity Project? - Stack Overflow

    If your project is in any way using Unity services (cloud things), then rename the project via its Unity (web-based) dashboard. Quickest way is using the three dots inside the Unity launcher, next to every …

  10. Unity - How to detect collision on a child object from the parent ...

    Jan 30, 2017 · When a collision occurs, Unity will search up the hierarchy for the nearest Rigidbody and run any scripts on that same GameObject. So, the simple approach is to make sure the rigidbody is …