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 glitch452 · May 20, 2015 at 04:00 PM · gameobjectdestroydebugdestroy object

Why would a GameObject delete itself.

I have a GameObject that is deleting itself almost immediately on run-time. I stepped through the debugger for the start up functions and couldn't find anything causing the Object to delete itself.

The Object is a subscene that contains the menu for my achievements, using this plugin for making subscenes. None of the other subscenes delete themselves. This scene was working fine until I got the Steamworks integration working.

So my biggest problem is trying to find what is causing the GameObject to delete itself. Can I run the debugger while telling it to catch anything deleting itself?

Comment
Add comment · Show 9
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 psykojello2 · Jun 27, 2015 at 05:24 AM 0
Share

I don't have a solution for you, but just wanted to let you know that you're not crazy! The same thing is happening to me right now. The only thing I did was install the Reign plugin. Very frustrating, but the only thing that helped me was rolling back to the previous version of my .scene file. Luckily my work is version controlled.

I think it might have something to do with a cleanup script I run for the reign plugin. The diffs between my good scene and bad scene show different GUIDs. That's about all.

avatar image giantkilleroverunity3d · Apr 14, 2019 at 07:49 PM 0
Share

I see this too. I am using Procedure lightning asset for lightning bolts. The LightningsabrePrefab is deleting from hierarchy in runtime at random moments. $$anonymous$$y thinking is there is an overrun of memory problem somewhere in the process that causes the gameobject to drop out of the game all together. The asset is still there when I quit runtime and go back to editor. How do I use unity to track the underpinnings of the runtime processes and find where the drop out is? I use other assets and have not had this problem.

avatar image xxmariofer giantkilleroverunity3d · Apr 14, 2019 at 08:01 PM 0
Share

well it should give you an error for running out of memory, try adding a OnDestroy event and check when this is happening

avatar image giantkilleroverunity3d xxmariofer · Apr 14, 2019 at 08:14 PM 0
Share

Perfect! Now I need a stack trace or list of previous events or some kind of memory dump. How is this obtained? Thanks for the answers!

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers

Destroying Assests Not Permitted 1 Answer

How come when the player runs into the coin it won't destroy? 1 Answer

Deleting objects from list sequence 1 Answer

How to make a game object destroy multiple gameobjects one per trigger enter 3d,How to make an object destroy objects once per enter with trigger enter 3d 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