About 79,100 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 · 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 …

  3. unity game engine - Accessing a variable from another script C

    Can you tell me how to access a variable of a script from another script ? I have even read everything in unity website but I still can’t do it. I know how to access another object but not …

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

  5. How to load next scene when pressed a button while playing in unity

    Dec 2, 2021 · You can use SceneManager.LoadScene() method to load the Scene by its name or index in Build Settings.. The SceneManager.GetActiveScene().buildIndex gives you the index …

  6. unity game engine - How can I make an action repeat every x …

    If you are using Unity then simplest way to code actions related to time are coroutines. You can simply call StartCoroutine and then use yield return new WaitForSecondsRealtime(5f). Using …

  7. How to install recommended SDK and JDK in Unity Editor

    Mar 28, 2023 · If "Add modules" does not show up see Can't add modules to installed Unity editors, although you will probably need to just uninstall-reinstall the editor through Hub: If you …

  8. Rotate object in Unity 3D - Stack Overflow

    Feb 22, 2015 · If you are looking to add this to a game object where you can drop the game object into the script: using System.Collections; using System.Collections.Generic; using …

  9. In Unity, how to detect if window is being resized and if window …

    May 12, 2020 · However. A huge problem in Unity is Unity does not smoothly resize elements as the user is dragging the mouse to expand the Mac/PC window. I have never found a solution …

  10. c# - How to add Persistent Listener to Button.onClick event in …

    Dec 7, 2016 · Unity wont fix this anytime soon. They usually don't fix stuff related to Mono since they are already working to upgrade to the latest Mono run-time. Luckily, there are two other …

  11. Some results have been removed