About 355,000 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

    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 …

  3. Unity Hub "Install failed: Validation failed" message whenever I try …

    Feb 21, 2024 · In Unity Hub, go to preferences -> installs. Make note of the "Downloads location" (Might have to move it out to a folder you know doesn't get deleted) Outside of the Unity Hub, …

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

  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. c# - Set Text with textmesh pro - Stack Overflow

    Jan 7, 2021 · You seem a bit confused about the use of TMP. 1. If you set the TMP in the inspector as public you can simply. public TMP_Text text;

  7. How to detect click/touch events on UI and GameObjects

    Dec 30, 2016 · If it already exist, Unity will just ignore it. B .The UI component or GameObject with the UI component must be under a Canvas . It means that a Canvas must be the parent of the …

  8. Unity UI button not reacting to clicks or hovering

    I'm using Unity 5.4.0b21 which is the beta (not the most recently released beta though.) I had to use because a critical bug was fixed in it. I would be happy to upload the scene but with the …

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

  10. How to scroll to a specific element in ScrollRect with Unity UI?

    Jun 11, 2015 · I built a registration form for a mobile game using Unity 5.1. To do that, I use Unity UI components: ScrollRect + Autolayout (Vertical layout) + Text (labels) + Input Field. This part …

Refresh