About 71,600 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 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. …

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

  6. Unity | mesh.colors won't color my custom mesh object

    I am trying to color my pyramid, as said in unity documentation like this: Color[] colors = new Color[vertices.Length]; for (int i = 0; i < vertices.Length; i++) colors[i] = Color.Lerp(Color.red, …

  7. In Unity, how can I pass values from one script to another?

    Dec 15, 2012 · 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. How …

  8. navmesh - In Unity, how to prevent animations from messing with …

    Apr 22, 2016 · First: one of the biggest plus of Unity is its mecanim. Disabling root motion is negating a big advantage. Second: the reason your character is running around probably is …

  9. How To Change The Pivot Point Of An Object In Unity

    If you are savvy with model building software (e.g., Maya or Blender), they often support tools allowing you to specify the center-point of the geometry. Importing these models into Unity, I …

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