About 66,300 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. 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. Unity: NullReferenceException: Object reference not set to an …

    Jan 29, 2019 · I am following an Unity tutorial. I face a problem when trying to detect collision in the game. This is the error: NullReferenceException: Object reference not set to an instance of …

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

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

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

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

  9. What does your .gitignore file look like for a Unity project?

    I use Unity .gitignore template then added with *.unitypackage.meta From my experience, it is crucial to add *.unitypackage.meta so it won’t mess up when other PC clone the project that …

  10. Sending http requests in C# with Unity - Stack Overflow

    Sep 2, 2017 · using Unity WWW, but it doesn't match my requirements; using some external packages from NuGet - Unity doesn't accept them :(Most problems were with threading, I'm …