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 BokenArts · Jun 23, 2017 at 11:36 PM · assetbundlemobile devicesmobileoptimization

Asset bundle variants for android and iOS

Hi, I'm developing a game for Android and iOS devices and I'm trying to use asset bundles manager (from bitbucket) to have "hd", "md" and "sd" variants for my assets, so I would like to know:
1. is it possible to use iOS app slicing without enabling ODR? if it is, how do I enable app slicing feature?
(In the main file i see the conditionals #if ENABLE_IOS_ON_DEMAND_RESOURCES and #if ENABLE_IOS_APP_SLICING separated on different sections as if it where possible to do so but in Player setting only when I enable on demand resources the variant settings appear)
2. I'm trying to load assets variants from a device by installing the app already with them, so how do I do this? (based on the example LoadVariants I created some sprites, put them asset name and tags, built them, and used AssetBundleManager.SetSourceAssetBundleURL("file:///" + Application.dataPath + "/AssetBundles/"); to try to force the manager to not download but find them within the app but when I export for iOS I see it expects a server or web page to connect so it never loads them...perhaps I should use Assetbundle.LoadFromFile but www should still manage or it could be the path that is incorrect...)
Thanks in advance.

Comment
Add comment · Show 1
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 BokenArts · Jun 25, 2017 at 02:28 AM 0
Share

I managed to make the second point to search for a file (it now does not says there's a connection error) by making the build for release (it was in development), but now It seems to search for the assetsbundles in the file path mentioned but nothing more happens (it never loads the next scene with the variants), is it possible that the path is incorrect or just that the bundles are not there until downloaded ?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by BokenArts · Jun 28, 2017 at 03:19 PM

Solved the second point by building the assetbundles in /Assets/StreamingAssets/ folder, following this guide and using Application.streamingAssetsPath to get them. I guess I'll just enable both ODR and App slicing for iOS.

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

68 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Mobile Game AI Optimization Question 1 Answer

Put shaders in different AssetBundle without bundles dependency. 1 Answer

Prefab in my asset bundle for iOS gets corrupted and doesn't show in the app 0 Answers

How to turn off 30 FPS cap on mobile device? 1 Answer

How to import the object from server to unity 2 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