• 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
Question by DavidGurran · Jun 13, 2012 at 10:19 AM · assetspreloader

Can I disable the Unity preloader so that assets appear progressively as they load?

For simplicity sake let's say I have a web build with three assets in it: a ground plane/terrain, a box and a light. Lets assume these take 40 seconds to load.

Is it possible to skip/disable the preloader and have the scene appear progressively as the assets are loaded? For example, the ground may have the shortest loading time and appear first in 10 secs, 20 secs later the box is loaded and appears, 10 secs later the light appears etc etc. The difference being here is that instead of watc$$anonymous$$ng a preloader count down for 40 seconds, you are watc$$anonymous$$ng the scene assets load one after the other. Here is an example of what I'm talking about: Progressive Loading

How could I ac$$anonymous$$eve somet$$anonymous$$ng like t$$anonymous$$s?

Comment
Bunny83

People who like this

1 Show 0
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

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Bunny83 · Jun 13, 2012 at 10:32 AM

No, levels / scenes are always loaded as a whole t$$anonymous$$ngs. You can have cross references between objects in the scene so all objects have to be available.

What you can do is to use a very small loading scene. Make sure it contains almost no assets. That means don't use the Resources folder and keep the loading scene as simple as possible. Now you can put parts of your level into seperate scenes and load them with Application.LoadLevelAdditive. Keep in mind to check the "streamed" checkbox at the building page so the game starts after the first level is loaded.

For more information see the streaming page

Comment
DavidGurran
flamy

People who like this

2 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 DavidGurran · Jun 13, 2012 at 12:19 PM 0
Share

Thanks Bunny83, that confirms a few of my thoughts on this and introduces some new ones also :)

avatar image
Wiki

Answer by sooncat · Jun 13, 2012 at 10:41 AM

Build the assetbundle seperatly will get the Effect.

1.build plane assetbundle

2.build box assetbundle

3.build scene assetbundle(leave dependencies here)

4.write a xml for object to load

5.load the xml first.

6.load the scene write in xml and load it.

7.load the plane write in xml and Instantiate it.

8.load the box write in xml and Instantiate it.

I build my webgame in t$$anonymous$$s way and works fine.

Comment
DavidGurran

People who like this

1 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 Bunny83 · Jun 13, 2012 at 11:03 AM 1
Share

Sure, if you have Unity pro you can use assetbundles, but how you use them is up to you ;) You don't have to use xml to load the objects. You would obviously need an xml loaded for this. It depends on how you want to stream the level. If the level is quite complex, i would create an editor script that can split a whole scene into chunks on a per-object basis. Pack the parts into seperate bundles / scenes and load them one by one.

avatar image sooncat · Jun 13, 2012 at 11:19 AM 0
Share

An xml/txt record the res name only.(xml is non-essential)

In any way, we need a record to know which bundles/scenes to be load:

The difference between WebPlayer/Android/Ios should be record in xml/txt , it is convenient to do multi-plantform development.

avatar image DavidGurran · Jun 13, 2012 at 12:22 PM 0
Share

Thanks sooncat, I think using xml in the way you suggested is a bit beyond me right now, but I'm sure someone else with more know how will find this a very useful approach :)

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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

how to preload assets with progress bar 1 Answer

What format is the timeCreated field in asset meta files in? 1 Answer

Mobile Background Design 1 Answer

Android Native Audio Adapter - Load file to MediaPlayer 0 Answers

Empty Scene, Hierachy Empty? HELP 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