• 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

Ondisable

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

quizcanners answered

Is there a way to know that Unity is quiting Play mode?

Mar 10, '23 exception·quit·ondisable·play-mode

3 Replies

2 Votes

avatar image

ruudvangaal commented

OnDestroy called when object lost focus in editor

May 17, '22 editor·ondestroy·ondisable

2 Replies

0 Votes

avatar image

ChichoRD asked

Does OnDisable()/OnStart() get always called OnApplicationClose?

Jan 22, '21 c#·playerprefs·ondestroy·onapplicationquit·ondisable

0 Replies

0 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

reddtoric answered

OnDisable() getting called from Destroy()

Aug 11, '19 destroy·call·destroyed·ondisable

6 Replies

3 Votes

avatar image

mchts commented

How to add only 1 value in a list in the Update function when a GameObject is active for many frames

Mar 19, '19 active·update function·frames·onenable·ondisable

0 Replies

0 Votes

avatar image

paulrts commented

Object created in CustomEditor is leaked into scene when play is pressed.

Feb 5, '19 scene·customeditor·leak·onenable·ondisable

0 Replies

0 Votes

avatar image

BagelDesu edited

OnSceneChange for Don'tDestroyOnLoad GameObjects?

Oct 8, '18 scene-loading·scene-change·onenable·ondisable

0 Replies

0 Votes

avatar image

rin-chan asked

would Unity disable gameobject temporary and automatically when loading a big assetbundle?

Apr 26, '18 assetbundle·setactive·onenable·ondisable

0 Replies

0 Votes

avatar image

hackisacker edited

Finding the exact time in a WaitForSeconds that it is currently at

Jan 5, '18 coroutine·waitforseconds·onenable·ondisable

2 Replies

0 Votes

avatar image

FlaSh-G answered

OnDisable and OnDestroy Not Get Called - iOS

Nov 10, '17 scripting problem·monobehaviour·ondestroy·ondisable

2 Replies

0 Votes

avatar image

AshAbeAdd commented

OnDisable() not working in case of audioclip.

Jun 16, '17 audioclip·ondisable

1 Reply

0 Votes

avatar image

playsidepaul answered

Isolate OnDisable from OnDestroy

Apr 4, '17 ondestroy·ondisable

2 Replies

0 Votes

avatar image

mitchellson97 asked

Trouble Saving and Loading Serialization

Feb 9, '17 in Help Room

0 Replies

0 Votes

avatar image

trialforce commented

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

Nov 19, '16 error·object·scene·cleanup·ondisable

8 Replies

7 Votes

avatar image

hexagonius answered

uGUI Text not updated until RectTransform has been altered

Nov 4, '16 ui·text·update·layout·ondisable

1 Reply

0 Votes

avatar image

Nazirzadeh commented

A strange question go.IsActive()

May 25, '16 in Help Room

2 Replies

0 Votes

avatar image

siddharth3322 answered

MissingReferenceException at scene unload time

May 1, '16 in Help Room

2 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

sotirosn answered

How to manually call/fire OnTriggerExit() for colliders a trigger is inside?

Feb 7, '16 collider·ondisable

2 Replies

1 Votes

avatar image

Ersin commented

Cannot destroy GameObject while it is being activated or deactivated.

Nov 28, '14 destroy·ondisable

1 Reply

1 Votes

avatar image

whydoidoit commented

Get update calls from prefabs when they are changed.

Feb 18, '14 c#·meshrenderer·ondisable

1 Reply

0 Votes

avatar image

MrVerdoux commented

Order of game object deletion when level is unloaded?

Dec 2, '13 unload·ordering·ondisable

0 Replies

0 Votes

avatar image

darbotron commented

Is it possible to determine if OnDisable() is being called from parent.SetActive( false ) or self?

Oct 20, '13 gameobject·parent·setactive·self·ondisable

2 Replies

0 Votes

avatar image

Jamora edited

EditorWindow member serialization in OnDisable

Jul 25, '13 c#·serialization·editorwindow·ondisable

2 Replies

1 Votes

avatar image

MiraiTunga published

If destroyed? how to check if destroyed?

Feb 14, '13 destroy·check·ondisable

1 Reply

0 Votes

avatar image

c.zeta commented

delayed function problem

Dec 8, '11 gui·yield·delay·onenable·ondisable

1 Reply

0 Votes

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Related Topics

onenable ondestroy destroy c# scene ordering editor setactive unload quit leak unity 5 gui data parent update function script. audioclip gameobject active delete events check monobehaviour self


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