Skip to main content

Play Any Song In Your Game Using Unity Plugin

So you want to create games in which user can listen to his own playlist of songs while playing the game.Here's a plugin that you might be interested in.



I have recently created a unity plugin to select a song from your android phone and then you can play it inside your game.Once a song is selected then it will randomly select another song from the playlist once it is finished.

Steps you need to follow
1) Import the plugin inside unity
2) Drag and drop the soundpicker prefab inside your scene.
3) Create a button to select a song.
4) Create a script and write two methods to play and stop your song like this.


5) Don't forget to import the SongSelectorDLL in your script;
6) Its done!

Now let users enjoy their own playlist while playing their favorite games. 

Download Plugin

Comments

  1. Hi Nishant,

    I need some help regarding the plugin that you developed for selecting a music from user device. Please let me know if you can help me. You can email me at noobunity100@gmail.com

    Thanks

    ReplyDelete

Post a Comment

Popular posts from this blog

Face Detection Using Python and OpenCV

I am currently working on face detection implementation using Python and OpenCV. Here is the result i collected using a placeholder image. Before After It detects faces pretty well. I am so excited to start working on real time face detection while capturing video. My goal is to work on face recognition and then will start working on detecting multiple types of objects.

Create Unity Custom Editor - Basics (Part 1)

In this basic lessons we will be going to create our own custom inspectors inside unity. Before we dive in lets get to know what custom inspectors are A custom inspector is basically an overridden inspector window which can help artist and designers to interact with the inspector in a more user friendly manner. It also helps to create a neat looking inspector for your scripts attached to gameobjects. So lets get started with the initial project setup    Steps to follow: 1) Start a fresh project 2) Create a folder name Scripts This will hold all the scripts(typically monobehaviour) which will be attached to a gameobject in the scene. 3) Create a folder name Editor ( Note : it should be the exact same name ) This will hold all the Editor scripts and Unity will automatically detect weather or not the project contains any editor scripts for component scripts. With this done we have the basic fundamental structu...

Eyes detection using Python and OpenCV

In my last post i've worked on detecting the face. In progress to that, i am able to detect eyes as well. Its pretty simple as of now. Here is the result Before After So as you can see it starts detecting eyes as well. I am making a little progress now but, still a lot to learn.  I am super excited to work towards my goal. * The image has been taken from google images and is used only for testing purpose.