Git Product home page Git Product logo

unity-music-box's Introduction

MUSIC BOX


Music Box that supports multiple playlists. Made for Unity.

Can be used for both prototyping and production. Requires very basic programming knowledge.

Was developed to be able to test multiple music samples for different environments & themes. For example; safe zones, danger zones, combat, town, etc...


FEATURES

  • Multiple playlists
  • UI Renderer with functional buttons (play, pause, next, previous)

INSTRUCTIONS

  • Simply create a new List of Song Entry variable in the Playlist script.
  • Then, add your pieces of music from the inspector.
  • Later, create a new public variable in the Music Box Controller script to represent your new playlist. And, attach your playlist here.
  • Also, add a new entry to the dropdown menu to be able to switch between those playlists.
  • Finally, it should work without a flaw.

IMPLEMENTATION INTO A NEW SCENE
  • If you want to implement it into a new scene, just drop the Music Box component in the hierarchy and Music Box Renderer under your UI Canvas.
  • Then, attach the required UI elements to the Music Box. (You will see them in the inspector)
  • Create your music playlists as you want, create the required variables & attach game object references as mentioned beyond, create dropdown relations and it's done.

USEFUL LINKS

HOW DOES IT WORK?

It reads your Song Entry lists and plays them in an order. The buttons change the index and reset it to 0 after reaching the ends of the list. The dropdown simply changes your current playlist and resets the index to 0.

unity-music-box's People

Contributors

pabron7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.