Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by XtremeLeo · Jun 12, 2011 at 03:41 AM · androidassetbundlelocal files

Local Asset Bundles for Android

I'm trying to use Asset Bundles for Android, they load up perfectly when I run the game in the Editor, but not in the Android Emulator. I've tried using the file:// and the jar:file// but neither work. I also tried hosting the Asset Bundles in a server and loading them via a WWW and it worked, but I'd like my files to be in the device. They are in StreamingAssets, so they should be in the APK build. Do you know how to make them work?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image XtremeLeo · Jun 12, 2011 at 03:44 AM 0
Share

Sorry for the typo, I'm actually using "jar:file://"

avatar image yuanfanglaipeng · Apr 08, 2014 at 05:41 AM 0
Share

If i use the path "jar:file://" + Application.dataPath + "!/assets/");where should i place the XXX.unity3d file!

avatar image Luqeas · Nov 13, 2014 at 01:29 PM 0
Share

Hi, did you have problem with long loading time on Android machine? I must wait cca 30sec while assetbundle is load and show on screen. pls help

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by XtremeLeo · Jun 12, 2011 at 03:58 AM

I've found the answer here. You've got to point your WWW to:

"jar:file://" + Application.dataPath + "!/assets/");

I was using /StreamingAssets/ instead of using the !/assets/ . I suggest moving this to the documentation.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image elixir-bash · Nov 09, 2012 at 06:29 AM 0
Share

Hey Xtremeleo,

Im trying to load asset bundle from sd card. I use www.LoadFromCacheOrdownload(path,version). The file exists , but when i check for bundle it says null. The asset bundle is in /mnt/sdcard/testbundle/test.unity3d

I also made sure the asset bundle is made for android platform using the optional parameter.

please help me out in this

avatar image yuanfanglaipeng · Apr 08, 2014 at 05:42 AM 0
Share

If i use the path "jar:file://" + Application.dataPath + "!/assets/");where should i place the XXX.unity3d file!

avatar image schetty · Oct 09, 2015 at 01:09 PM 0
Share

i have got this path but its not fetching the my .unity3d file. I used the below link

"jar:file://" + Application.dataPath + "!/assets/cube.unity3d");

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Android StreamingAssets File Access 6 Answers

Applying a Texture from an assetbundle 0 Answers

Loading multiple Assetbundles causes a Crash 1 Answer

How to import the object from server to unity 2 Answers

Is there any way to load a movie file from asset bundles for android only 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges