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
2
Question by ALex · Mar 25, 2010 at 10:56 PM · objectruntimedisappear

Why is my object disappearing at runtime?

I have an interative scene that allows you to click various objects and move them around however for the latest object I have added, I have followed the asme procedure as I have for the other objects yet this one seems to disappear when running the scene and cant seem to see a reason why, can anyone provide any clues please?

Many thanks

Comment
Add comment · Show 1
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 Tuti · Mar 25, 2010 at 11:22 PM 0
Share

Have you assined your objects to a corresponding prefab? Is this last object same as the others and using the same scripts?

6 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by rstecca · Jul 13, 2012 at 10:49 AM

Hi, too few infos to be sure this is your case but since I had similar issues..

  1. Find the Animation component in your object. There you should see the Culling Type option. This is set by default to Based on Renderers which basically means that if your object goes out the rendering context it will no longer be animated. If your object is out of the scene when the game start, you'll not see it. So, if you want your object to be animated bypassing any logics that Unity does to optimize animations, set Culling Type to Always Animated. Have a look to the other conditions too as they could meet your needs.

  2. Make sure you don't have any script that changes your object's layer to another one that might be "culled out" and thus not rendered.

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 Emericanized · Dec 11, 2012 at 06:14 PM 0
Share

I had to comment a thank you as well as an up-vote on this one, we were stumped, with a deadline fast approaching, and our characters were set up under a gameobject whos culling time was Always Animated, but the imported characters below it were set to something different. This modification seems to have fixed our issues.

Thank you.

avatar image Rs · Jan 15, 2013 at 01:46 PM 0
Share

Very glad it helped you.

avatar image laphil · Apr 12, 2016 at 12:45 PM 0
Share

Been knocking my brain out on this, so glad I found this answer, thanks for the help!

avatar image krsevan · Jan 27, 2018 at 01:52 PM 0
Share

I have no reward points, but you are the best men. Thank you so much dude u saved me big time!

avatar image
4

Answer by Vecna · Feb 09, 2016 at 05:12 PM

My Animator models used to disappear and by right clicking on the rotation property and changing it from Euler Angles to Quaternion fix it.

alt text


quaternion.png (18.4 kB)
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 hs91 · May 05, 2016 at 01:11 PM 0
Share

Logged In just to say that I love you. I've been spending a whole afternoon trying to understand why the damn object was disappearing and giving me weird errors never seen before. Euler Angles (quaternion) fixed everything. Thanks <3

avatar image gfxguru · May 07, 2016 at 09:42 AM 0
Share

thank you very much, you saved my day

avatar image meat5000 ♦ · May 07, 2016 at 10:02 AM 0
Share

Give thanks with an upvote @hs91 @gfxguru

avatar image meat5000 ♦ · May 11, 2016 at 09:17 AM 0
Share

Hmm. Not cool guys.

avatar image
3

Answer by Sebas · Mar 26, 2010 at 02:16 AM

It might be worth a shot, but have you checked in your modelling application of choice whether the surface normals are reversed? That could be a reason why the object doesn't show up while the others do (given the same script and same scene used). Does it only happen at runtime? Have you checked up close in your scene view?

There are many related questions available to surface normals. Try this Answer

I know you said that all procedures are the same, but did you change anything with layers? Is it truly rendered by the correct camera? Is the object so close/far away to the camera, that it's outside of the the clipping range? That's all I can think of for now.

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
3

Answer by sskenth · Jan 12, 2017 at 09:34 PM

So I wanted to add to this because I tried the solutions above and still no luck!

Turns out that the Skinned Mesh Renderer I was using had "Update When Offscreen" unchecked! Once this was checked the animation and model stopped vanishing when it was half off screen. I hope that helps someone else in the future.

alt text


screen-shot-2017-01-12-at-210835.png (34.5 kB)
Comment
Add comment · Show 2 · 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 cwbeta · Jun 29, 2017 at 02:30 AM 0
Share

Great thanks!!!! It solves the weird problem making the model disappear when doing some special animation like flying out of the camera!!!

avatar image Chopslee · Aug 10, 2021 at 10:20 AM 0
Share

This did it for me. Animated objects were working during runtime on the PC, but when deployed to Hololens 2 they disappeared. Update When Offscreen must be checked for them to stay. Life saver!

avatar image
0

Answer by Davidfails · May 16, 2021 at 01:57 AM

My issue was the camera deleted some Clear flags and culling masks were set to only some filters.. try setting it to the right mix or everything and skybox..

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
  • 1
  • 2
  • ›

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

14 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

Related Questions

I created a "Madness" button that spawns 100 GameObjects (Zombies). However, I noticed that a sizable portion of them "vanish" not long after spawning. Am I reaching a hidden limit? Garbage Collector? 1 Answer

Export objects to a .3DS file at runtime 1 Answer

How to make an animated object disappear? 2 Answers

Referencing instantiated objects at runtime 2 Answers

How can I make an object disappear when clicked? 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