Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
1
Question by lazwards · Jun 04, 2019 at 06:45 PM · iosresourcesassetbundlesnativebundles

onDemandResources problems

Hello, I am facing some issues with ODR (On Demand Resource) in Unity. When I am downloading some resources using OnDemandResourcesRequest, I’m get errors to OnDemandResourcesRequest error field: «Connection invalidated to streaming unzip service.» and «无法与帮助程序通信。». Also, the first time app launch normally, and then I see these errors.

What I’m doing wrong? Unity 2018.3.6f1


Request code:

 private IEnumerator LoadDemandBundle(string bundleName, LoadingProgress progress, Action<AssetBundle> callback = null) {
     SentrySdk.AddBreadcrumb(string.Format("Start loading demand bundle name: {0}", bundleName));
 
     if (this.progress.IsContains(bundleName)) {
         yield break;
     }
 
     if (this.bundles.ContainsKey(bundleName)) {
         if (callback != null) {
             callback(this.bundles[bundleName]);
             yield break;
         }
     }
 
     OnDemandResourcesRequest onDemandResourcesRequest = OnDemandResources.PreloadAsync(new string[] { bundleName });
     this.progress.Add(bundleName, onDemandResourcesRequest);
     yield return onDemandResourcesRequest;
 
     if (!string.IsNullOrEmpty(onDemandResourcesRequest.error)) {
         SentrySdk.CaptureMessage("ODR request failed " + bundleName + ": " + onDemandResourcesRequest.error);
     }
 
     AssetBundle bundle = AssetBundle.LoadFromFile("res://" + bundleName);
 
     if (bundle == null) {
         SentrySdk.CaptureMessage("Bundle restart downloading " + bundleName);
         progress.Remove(bundleName);
         this.LoadDemandBundle(bundleName, progress, callback).Execute();
         yield break;
     }
 
     this.bundles.Add(bundleName, bundle);
     this.progress.setBundleReady(bundleName);
 
     if (callback != null) {
         callback(bundles[bundleName]);
     }
 }
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Binouze · Mar 23, 2021 at 11:12 AM

Hi, I have the same problem on some iOS devices did you find a solution ?

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

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

Related Questions

How do I get a list of filenames in a Resources folder? 6 Answers

How do I read unicode text file on IOS from resources folder? 1 Answer

Unity or native library for this iOS app? 0 Answers

Xcode linker error lists methods that should exist 0 Answers

Loading audio dynamically iOs 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