I am new to unity3D gonna develop a standalone game
from webplayer based game
. so the webplayer game download the assets folder from server but according to standalone no need to download assets from server. so how can i load local bundle to run the app. i have folder name "Bundle
" which contain the bundle package.
Asked
Active
Viewed 1.4k times
1

devdigital
- 34,151
- 9
- 98
- 120

Srini
- 387
- 1
- 13
- 27
1 Answers
7
If your Bundle folder is in Assets/Resources you can use Resources.Load() to load them. AND(!) they are compiled into your game.
If you want to use WWW to load local files use file://
var FilePath = "file://" + Application.dataPath + "/Bundle/image.jpg";
And point WWW to this path.

Valentin Simonov
- 1,768
- 10
- 14
-
Be careful, this is only working on OSX, Window Editor. For example on Android, Application.dataPath doesn't exist. – xeonarno Aug 27 '13 at 19:40