Unity3D: add and loop background music

Trabla: Unity3D: add and loop background music 


Unity3D add and loop background music - codingtrabla tutorial 1


Solving:


1. Select "Main Camera" game object


Unity3D add and loop background music - codingtrabla tutorial 2











2. Add component "Audio Source"

Unity3D add and loop background music - codingtrabla tutorial 3


3. Drag-n-drop audio file to "Audio Source"->"AudioClip"


Unity3D add and loop background music - codingtrabla tutorial 4


















4. Enable check box "Audio Source"->"Play On Awake "
5. Enable check box "Audio Source"->"Loop"


Unity3D add and loop background music - codingtrabla tutorial 5



















6. Save your project

No comments:

Post a Comment