Deploy Sqlite in Unity3D

Hi sorry to bother you guys.
I am from this forum http://forum.unity3d.com/viewtopic.php?p=360542

I am confused “Assets that are not directly used in the scene or linked in as prefabs are stripped from the built project.”

I have used or try your advice using Application.dataPath.

    if (Application.platform == RuntimePlatform.OSXPlayer) {
        path=""+Application.dataPath+"/database/gallery.db";
    }
    else if (Application.platform == RuntimePlatform.WindowsPlayer) {
        path=""+Application.dataPath+"/database/gallery.db";
    }
	else{
		path=""+Application.dataPath+"/database/gallery.db";
	}

Unfortunately the deployment did not include database/gallery.db into the TEST_data folder.
Please help me. I appreciate your time.

Thanks

you need to write a post build player script which copies the file for you from the project folder to the deployment folder.
it will otherwise not exist at all.

also you don’t want it to be included with the unity project cause otherwise it will not exist as standalone file at all to access through file paths!

Hmmm write a post build player script.

Is there any example of that post build player sciprt so that I could learn it.

Thanks for the quick reply.

http://unity3d.com/support/resources/assets/postprocessbuildplayer

Thanks man. I’ve spent tens of hours learning and making the script for PostprocessBuildPlayer, but it still does not deploy the database and other important assets.

Please assist me in postProcessBuildPlayer. Anyone :frowning: