About 68,200 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. 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. 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 …

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

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

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

  9. How to use a font you imported into unity in Text Mesh Pro

    Apr 18, 2021 · On the Unity Menu, go to Window -> TexMesh Pro -> Font Asset creator, and select the font you want to ...

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

Refresh