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 Persona · Aug 03, 2010 at 03:57 AM · prefabmodelskip

Unity skips when spawning Prefabs

Does anyone know why Unity skips a few frames when it loads certain prefabs? The Prefabs in question are models I made myself ranging from 189Kb to 245kb.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by jashan · Aug 03, 2010 at 06:54 AM

On first instantiation of prefabs it takes a moment to load those which can result in a little hiccup. One solution is to have those prefabs as part of the scene already (in some hidden place). That will likely make the scene loading take a little longer but that's usually less noticeable than the hiccup when loading the prefab.

Another possibility is splitting up the prefab in smaller parts or using smaller (less complex) models.

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 Persona · Aug 04, 2010 at 03:55 AM 0
Share

I kinda figured it out, it was due to the scaling. I had to scale them in 3ds max ins$$anonymous$$d of by Unity. At least it's working for now. Thanks for the suggestions though, they got me thinking.

avatar image
1

Answer by qJake · Aug 03, 2010 at 06:58 AM

This is a bit of a stretch, and it requires Unity Pro, but you could stick your prefab in another, empty scene and load it with Application.LoadLevelAdditiveAsync. This shouldn't cause any lag at all.

Comment
Add comment · 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 Persona · Aug 04, 2010 at 03:54 AM 0
Share

I don't have unity pro

avatar image qJake · Aug 04, 2010 at 05:58 AM 0
Share

But someone else who is reading this answer might. Answers are for everyone, not just the asker. :P

avatar image forestj · May 18, 2012 at 01:06 PM 0
Share

LoadLevelAdditiveAsync does not fix this problem. AFAI$$anonymous$$ the hitch when it loads is a problem for LoadLevelAdditiveAsync as well. Jashan's answer is correct.

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

No one has followed this question yet.

Related Questions

Cannot Edit Blender Model Prefab in Unity 1 Answer

A node in a childnode? 1 Answer

How to animate inside Unity? (Blender animation is finished) 1 Answer

Rotate object 1 Answer

How do I determine unity "unit" size of a model? 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