About 97,300 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 …

  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 …

  3. Changing color of of gameObject in Unity - Stack Overflow

    Jul 23, 2015 · Changing color of of gameObject in Unity Asked 9 years, 11 months ago Modified 9 years, 1 month ago Viewed 39k times

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

  5. How To Play Animation Through Script? - Unity - Stack Overflow

    Jun 2, 2020 · I am making a game and I made an animation for the win screen. According to all the tutorials I've watched, the animation is played when you activate the GameObject. …

  6. Rotate object in Unity 3D - Stack Overflow

    Feb 22, 2015 · 16 I can use the following code to rotate object using accelerometer. transform.rotation = Quaternion.LookRotation(Input.acceleration.normalized, Vector3.up); But i …

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

  8. unity game engine - Unity3D Models are pink - Stack Overflow

    Sep 16, 2020 · I have been following along a tutorial and I don't know why these prefabs appear to be pink while it should be rendered. While opening the project I got an alert that my Unity …

  9. Add an image to object in Unity editor - Stack Overflow

    Jun 12, 2016 · How do I add an image to an empty object? Which component should I add? I've tried adding an "Image" component but I can't figure out what to do afterwards.

  10. How to trigger the On Click function of a button in Unity?

    Jul 17, 2024 · I have a button with a click handler assigned to it. In my script I want to trigger that click function without the user clicking the button. How can I do this? I figured with …

Refresh