About 256,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. How to prepare a Unity project for git (step-by-step)?

    Sep 16, 2022 · On the Unity Editor open your project and: Enable External option in Unity → Preferences → Packages → Repository (only if Unity ver < 4.5) Switch to Visible Meta Files in …

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

  5. How to find child of a GameObject or the script attached to child ...

    gameObject.transform.children contains all immediate children of a given GameObject. You can iterate over it and find the desired child.

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

    Feb 22, 2015 · Units are somewhat arbitrary in 3D engines, even Unity. Though sometimes there will be aspects of the engine that expect a certain unit to real-world scale. Picking 1 unit to = 1 …

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

  8. unity game engine - how to detect which gameobject is clicked

    Mar 13, 2020 · This method works perfect on both desktop and mobile apps: Add a collider component to each object you want to detect its click event.

  9. How to pass data (and references) between scenes in Unity

    1. Use the static keyword.. Use this method if the variable to pass to the next scene is not a component, does not inherit from MonoBehaviour and is not a GameObject then make the …

  10. c# - Scale GameObject in Unity - Stack Overflow

    Aug 31, 2016 · How can I increase / decrease the size of objects in Unity? Example: public GameObject sprite; public float scale = 2.0f; void ScaleResolution() { sprite = sprite*scale; …