Category: Unity

Automatic Android Code Signing in Unity

Create a new folder in your project called Editor Within that folder create a new C# script called something like PreloadSigningAlias.cs Copy and paste the code below into the script and save it. Replace KEYSTORE_PASS with the password to your keystore Replace ALIAS_NAME with the name of your android alias Replace ALIAS_PASSWORD with the password […]

Playing A Sound in Unity

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 play the sound. audioSourceExplosion.Play(); 3. NOTE : What I have called audioSourceExplosion here is the name of the variable and of […]