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 benfattino · Jun 25, 2012 at 02:33 PM · sceneprefabsload

load scene without lag

What is the best way to load object into current scene without lag? I try to use LoadLevelAdditive, but when I load a new scene the current scene stop until the new scene is load. If I try with prefabs?

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
1

Answer by Tim-Michels · Jun 25, 2012 at 02:51 PM

You can use LoadLevelAdditiveAsync, but you need to own a Pro license.

Edit

LoadLevelAdditiveAsync loads a new level on another thread, but when you only need to load single objects, I would suggest instantiating prefabs.

You can simple put in your code:

C# example

GameObject newCube = GameObject.Instantiate(cubePrefab) as GameObject;

Comment
Add comment · Show 4 · 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 benfattino · Jun 26, 2012 at 09:53 AM 0
Share

I try with LoadLevelAdditiveAsync but I have also lag when scene load. I'm wrong something?

avatar image Tim-Michels · Jun 26, 2012 at 10:04 AM 0
Share

Can you tell me what kind of objects you need to load additive. Does your scene you're loading additive contain lots of objects? I really should know more information to give you the best answer...

avatar image benfattino · Jun 26, 2012 at 10:32 AM 0
Share

I have a big scene where there are texts that move. For each text is associated (with a click of the mouse) to load another scene containing various images (planes with texture). Each scene contains around 70 images (planes with texture). When the scene is loaded only the first immagne is active, the others are successively loaded and only one at a time. The images do not appear to be disabled. when you leave the image gallery scene is destroyed.

I noticed that when I start the scene I only slow the first time I load the scene, the successive times the load is instantaneous. Thanks for the attention.

avatar image benfattino · Jun 26, 2012 at 10:48 AM 0
Share

I tried running the app on the iPad and seems to work. It occurs to me that the problem there is lag when you run the app on the editor. Thanks again for your attention.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

allowSceneActivation give me error message 0 Answers

heavy scene loading 1 Answer

My button won't load a scene 1 Answer

Load another Scene after collecting 6 coins 1 Answer

Save & Load Game question 3 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