• 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

Ondestroy

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

NTG-Sera edited

OnEnable/Disable on property drawers

Nov 7, '19 editor·propertydrawer·ondestroy·onenable

3 Replies

1 Votes

avatar image

groovyMyserioso published

How do you disable OnDestroy() before level is reloaded?

Sep 24, '15 in Help Room

3 Replies

2 Votes

avatar image

Remycxh published

When I Multi-select gameobjects and press 'delete' 'OnDestroy' func is not called?

Sep 2, '14 editor·callback·ondestroy

0 Replies

0 Votes

avatar image

$$anonymous$$ commented

Game Over GUI

Aug 28, '14 gui·player·components·ondestroy

2 Replies

0 Votes

avatar image

vikingfabian-com answered

OnDestroy in Editor - memory loss issue

Jun 24, '14 executeineditmode·ondestroy

1 Reply

0 Votes

avatar image

iwaldrop commented

OnDestroy() object with tag

Jun 8, '14 prefab·tag·ondestroy

1 Reply

0 Votes

avatar image

Kiwasi commented

GUI buttons not appearing on Destroy

May 26, '14 c#·gui·interface·ondestroy·execute

1 Reply

0 Votes

avatar image

blitzen asked

GameObjects Created Twice from Application.LoadLevel?

Feb 18, '14 start·awake·application.loadlevel·ondestroy

0 Replies

0 Votes

avatar image

antiping_Unity published

Activity lifecycle with MonoBehaviour method?

Feb 5, '14 ondestroy

0 Replies

0 Votes

avatar image

bugmagnet published

Unity not releasing ports correctly?

Jul 6, '14 network·rpc·socket·ondestroy

3 Replies

0 Votes

avatar image

eventropy commented

OnDisable/OnDestroy Execution Order

Apr 15, '16 execution order·ordering·ondestroy·ondisable

2 Replies

3 Votes

avatar image

meat5000 edited

OnDestroy() : Some objects were not cleaned up when closing the scene

Jul 20, '15 c#·error·ondestroy

1 Reply

0 Votes

avatar image

Eric5h5 answered

How to check if OnDestroy has finished?

Mar 21, '13 c#·component·ondestroy

1 Reply

0 Votes

avatar image

Iq110 edited

OnDestroy() callback in Editor upon deleting selected GameObject - del key Wiki

Aug 22, '20 gameobject·editor·delete·callback·ondestroy

5 Replies

4 Votes

avatar image

GalZohar edited

How can viewID not be found if object exists?

Jan 7, '13 networkview·ondestroy·viewid

0 Replies

0 Votes

avatar image

FWCorey commented

Child detach and save itself when parent is destroyed Closed

Jun 14, '13 parent·child·ondestroy

3 Replies

6 Votes

avatar image

pz_cloud edited

Why does onDestroy in UnityPlayerActivity kill the entire process (Android)

Feb 15, '19 android·kill·activity·ondestroy

4 Replies

1 Votes

avatar image

playsidepaul answered

Isolate OnDisable from OnDestroy

Apr 4, '17 ondestroy·ondisable

2 Replies

0 Votes

avatar image

syclamoth commented

How to detect in OnDestroy if scene is closing/game is being closed

Mar 7, '12 ondestroy

1 Reply

1 Votes

avatar image

AchillesWF published

Object startup sequence skipped when returning from play mode to editor???

Feb 25, '12 editor·start·not·ondestroy

0 Replies

0 Votes

avatar image

Lypheus asked

Get OnDestroy Notification of another Object

Nov 5, '11 notification·ondestroy

0 Replies

1 Votes

avatar image

Tseng answered

OnDestroy-like function for non monobehaviour

Oct 8, '11 ondestroy

2 Replies

0 Votes

avatar image

Derptastic commented

Instantiate OnDestroy

Mar 31, '17 javascript·instantiate·ondestroy

1 Reply

7 Votes

avatar image

ramsey05 commented

Is there a way to disable Maximize on an EditorWindow?

Nov 30, '21 editorwindow·ondestroy

1 Reply

2 Votes

avatar image

SisterKy edited

switch weapon onDestroy

Jul 15, '11 switch·ondestroy·switch objects

1 Reply

-1 Votes

avatar image

Lumart asked

OnDestroy collision detect

Apr 29, '11 collision·gameobject·collider·onmousedown·ondestroy

4 Replies

0 Votes

avatar image

Patyrn commented

"Some objects were not cleaned up when closing the scene"

May 26, '11 gameobject·rigidbody·destroy·ondestroy

1 Reply

1 Votes

avatar image

sl1nk3_ubi edited

Detect when GameObject has been deleted / removed from scene

Dec 16, '20 editor·destroy·delete·ondestroy·ondisable

10 Replies

8 Votes

avatar image

Ecnalyr asked

I want to use the current scale x of my object to help calculate my score. . .

May 25, '10 destroy·scale·score·ondestroy

1 Reply

0 Votes

avatar image

cregox commented

OnDestroy notification?

Apr 4, '12 destroy·event·ondestroy

1 Reply

2 Votes

  • ‹
  • 1
  • 2

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.

Related Topics

destroy gameobject editor c# ondisable instantiate scene delete saving callback gui error event player onapplicationquit time start scriptableobject singleton prefab execution order animation monobehaviour load editorwindow


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