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 unity200 · Jan 11, 2012 at 09:49 PM · assetbundleloadingloadleveladditiveasync

Additive loading with asset bundles

Hi, I'm new to Unity and Javascript so please bear with me.

What I'm trying to do is set up a level where its contents are loaded and unloaded as the player walks through by using asset bundles. So as the player continues to walk through the level, the areas at the start will be unloaded and newer areas loaded in. I'm currently using triggers to signal asset bundle downloads and think that I will have to use Application.LoadLevelAdditiveAsync somehow. I'm not sure exactly how I will do this. Can someone please give me suggestions on how to stream a level using asset bundles. I'm developing for the iPhone.

Comment
Add comment · Show 2
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 tylo · Jan 12, 2012 at 12:10 AM 0
Share

Do you have Unity Pro? Async operations are a Pro only feature.

avatar image unity200 · Jan 15, 2012 at 08:45 PM 1
Share

Yes I have access to Unity Pro.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by shaystibelman · Jan 26, 2012 at 02:50 PM

I'm doing exactly the same thing on my current project and I have found extremely useful the BuildPipeline.BuildAssetBundle like kevork mentioned. The only thing that I have just noted is that if you want to maintain lightmaps, you will have to save the entire scene and not just a prefab. To save the scene as a *.unity3d file I have used BuildPipeline.BuildPlayer and then use the buildOptions.buildAdditionalStreamedScenes in order to AsyncLoad them. That's my technique. If anybody's got a better way, do share!

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

Answer by kevork · Jan 11, 2012 at 10:49 PM

Personally, I'd recommend using C# over JavaScript, and not because the example on BuildPipeline.BuildAssetBundle is in C#.

If you create a script file with the code from the above link into your project in a /Editor folder, select a level you want to stream in your Project View, and go to Assets -> Build AssetBundle From Selection - Track dependencies, save the file on your disk, copy that file onto your remote computer. You now have a level that you can retrieve and stream.

You can load that level with WWW-assetBundle.

Good luck!

Comment
Add comment · Show 1 · 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 unity200 · Jan 11, 2012 at 11:59 PM 0
Share

Downloading the level from a server isn't too hard. I'm just unsure as to how to load it the way I want. Would I still use Application.LoadLevelAdditiveAsync?

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

7 People are following this question.

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

Related Questions

Assetbundle loading time 0 Answers

Asset bundle downloads lagging after upgrading project from Unity 2018.X to Unity 2019.X 0 Answers

Asset Bundle example not loading on iOS device 0 Answers

Asset bundle (scene bundle) loading time is too much 0 Answers

How to implement DLC with unity free? 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