About 86,700 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. 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. …

  3. Unity: Conflict between new InputSystem and old EventSystem

    Nov 26, 2020 · Unity will restart. Now your problem should be solved. You will be able to use old input system packages and the new ones also simultaneously. Cheers. P.S. Click on this …

  4. How do to use a python script in Unity? - Stack Overflow

    Feb 18, 2022 · Enter com.unity.scripting.python as the name and and 4.0.0-exp.5 as the version and click Add. Alternatively, you may edit Packages/manifest.json and add …

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

    Jul 23, 2015 · Okay so I have this code. void Start () { gameObject.GetComponent<Renderer> ().material.color = Color.green; } I expected my …

  6. Serialize a custom class in a custom inspector in Unity

    Oct 26, 2022 · I need to serialize a class in a custom inspector (using visually the Editor) like as doing in a Monobehaviour script like this: [System.Serializable] public class CustomClass { int …

  7. Unity, How to make the friction work with movement

    Jan 12, 2023 · I have a 3d world with a simple platform with a cube representing the player. When I rotate the platform the cube glides and perform as you expect when increase and decrease …

  8. Unity width and height of the gameobject - Stack Overflow

    Feb 14, 2019 · There are 2 possible ways to do this. If your object has a renderer, you can use renderer.bounds.size, which will return a vector with the height and width (and depth, if it is in …

  9. Unity - Getting an input action value - Stack Overflow

    Mar 12, 2023 · Unity has a new input system but documentation is shoddy at best, very confusing and not straight forwards at all. How do I get a simple read out of my input actions value? I …

  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.

Refresh