About 68,400 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 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. 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. …

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

  5. How to fix Unity hub not opening unity project when clicked?

    May 3, 2022 · None of these answers really explain how to identify the underlying issue when encountering these symptoms. If you open your Task/Processes manager before you try to …

  6. How to work with units (meters) in unity - Stack Overflow

    Feb 22, 2015 · Once you've settled this, in meters, feet or "unity scale", take note of the primitives' size and stick to it, this way the actual units won't be that important but the coherence between …

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

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

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

  10. How to correctly inherit Unity's callback functions like Awake ...

    Oct 31, 2018 · When tested in Unity version 2020.1.21f, protected callback functions like Start will automatically be executed in their child classes. There is no need to declare a function as …