Category: Scripting

  • I Just Copy / Pasted a Script from the Unity Docs, Why isn’t it Working?

    I just tried to copy/paste a script from the Unity Website – specifically a script for quitting the game when the player presses Escape. But then it didn’t work… what went wrong? Here’s the process I went through to discover and correct the issue: I created a new script called “GameController” I pasted in the code…

  • Making Objects Float Up & Down in Unity

    Ever wanted to make an object float up and down while spinning in Unity? Well, I’ve written a script for that. Usage Select an object in your Unity project. Add Component > New Script Name: Floater Language: C-Sharp Edit the script Copy & Paste the code below into your script editor. Save the script. Tweak settings…