Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 gheeler · Mar 07, 2013 at 02:23 PM · androidwww

www object on android. what do i need to do?

code i have to get an assetbundle from my server works fine in the editor but when i publish onto a tabllt nothing is happening.

     WWW www = WWW.LoadFromCacheOrDownload (@"http://my server/model_car.unity3d", 0);
 
     yield return www;
             
     Instantiate(www.assetBundle.mainAsset);

the assestbundle im testing it with is only 2kb.

am i missing somehting here? im using android pro

Comment
Add comment · Show 9
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 Landern · Mar 07, 2013 at 03:08 PM 0
Share

Did you get permissions to access the internet on the device? or any other permissions needed?

avatar image gheeler · Mar 07, 2013 at 03:11 PM 0
Share

yeah it has full network access in the settings on the tablet. cant think of any other permissions.. i dont need any extra dlls or anything do i?

avatar image Landern · Mar 07, 2013 at 03:22 PM 0
Share

What is the mainAsset? A prefab? are you getting an error, have you tried setting the position and rotation so that it is 100% in front of the camera and viewable?

avatar image gheeler · Mar 07, 2013 at 03:23 PM 0
Share

it is a prefab yeah, just a few cubes stuck together. it spawns right in front of the camera in the editor but ill set the position just to be sure, thanks

edit: yeah its definitely not there

avatar image gheeler · Mar 07, 2013 at 04:56 PM 1
Share

i just remembered assetbundles arent compatible between systems, so i need to build it with the platform set as android i think. im too tired to concentrate properly. ill come back to it tomorrow. thakns

Show more comments

1 Reply

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

Answer by gheeler · Mar 08, 2013 at 10:50 AM

Finally found the answer in another question.

unity says to set the target platform, so i set it in build settings in the editor which is wrong.

in the build asset script there is an overload for this funciton:

BuildPipeline.BuildAssetBundle(Selection.activeObject, selection, path, BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets, BuildTarget.Android);

How this isnt highlighted in the documentation i have no idea...

sometimes the docs are rubbish

Comment
Add comment · 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

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

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity download audio 1 Answer

How can i do youtube video player from video url for Android devices ? 0 Answers

WWW Form C# on Android 0 Answers

WWW Android Memory Leak? 1 Answer

WWW Post (Form) not working on mobile. 1 Answer


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