Playing A Sound in Unity

, , 1 Comment

Here’s a simple way to play a sound in Unity. 1. Add something like this to the declaration section of your script. public AudioSource audioSourceExplosion; 2. Add this line of code where you want to…

Read Post →

Changing C# template for Unity

, , No Comment

The template files for Unity’s scripts are kept in Program FilesUnityEditorDataResourcesScriptTemplates The new behaviour script, the most common one is called (or something similar, depending on version) 81-C# Script-NewBehaviourScript.cs.txt

Read Post →