- Home /
background music
may i know how to put a background music on a scene?
how do i add my music ins$$anonymous$$d of the music from the mixer
Answer by BigBlob · Jan 28, 2012 at 05:19 PM
import any music file from your desktop and attach that music/song file to the camera
Felipe
is it only to the camera ? can i attach it to the scene ?
No, you can't attach it to the scene. However, if you make it a 2D sound you can put it anywhere and it won't get affected by distance falloff.
so, i can drag it to the scene and uncheck the 3d sound? is that what you mean?
Yep! That would be my entire comment, if it weren't for the $$anonymous$$imum character limit.
Answer by madflyskills · Jun 13, 2013 at 12:06 AM
SoundManagerPro pretty much does exactly that. Adds music to scenes to play correctly once you enter them.
It is a commercial add-on though, so it is not a native way to achieve the desired effect.
Answer by ReinaldoSantana · Mar 18, 2015 at 11:53 AM
1 Insert a cube to your main camera 2 Insert a AudioSource cubed 3 Insert Starfish script in C # in the cube 4 Drag the music file to the field BackMusic
using UnityEngine; using System.Collections;
public class BackGroundMusic : MonoBehaviour {
AudioSource fxSound; // Emitir sons
public AudioClip backMusic; // Som de fundo
// Use this for initialization
void Start ()
{
// Audio Source responsavel por emitir os sons
fxSound = GetComponent<AudioSource> ();
fxSound.Play ();
}
}
Answer by beingyogiraj · Jun 07, 2016 at 02:35 PM
There are already some good answer but I want to add resources for royalty free background musicfor your videos http://www.thegeekinfo.com/2016/06/how-to-find-royalty-free-music.html