• 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

reddtoric answered

OnDisable() getting called from Destroy()

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

6 Replies

2 Votes

avatar image

ImperialDynamics answered

Detect when GameObject has been deleted / removed from scene

May 2, '19 editor·destroy·delete·ondestroy·ondisable

10 Replies

7 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·ondisable·cleanup

8 Replies

6 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

lighting answered

OnDestroy called when object lost focus in editor

Sep 11, '16 editor·ondestroy·ondisable

2 Replies

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·ondestroy·ordering·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

0 Votes

avatar image

Kerihobo commented

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

Nov 18, '15 exception·quit·ondisable·play-mode

1 Reply

2 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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

onenable destroy ondestroy c# scene ordering editor setactive unload script. audioclip gameobject active delete events check monobehaviour self frames parameters scripting problem delegate editorwindow waitforseconds cleanup
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges