Playground Script: MusicPlayer

This Expanded Unity Playground script will play a sound clip as soon as the GameObject it is attached to loads. If there is already music playing, it will replace it. The music will persist between scenes and will loop until replaced.

To use the script, simply attach it to a GameObject in the scene and provide an Audio Clip for it to play.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s