• 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

Onenable

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

HereBeCush published

How do I make OnEnable execute for instantiated objects?

Feb 13, '23 in Help Room

2 Replies

1 Votes

avatar image

IyroHaYuu edited

OnEnable/Disable on property drawers

Aug 31, '22 editor·propertydrawer·ondestroy·onenable

4 Replies

1 Votes

avatar image

Nichathan answered

Reliable way to detect when the game starts playing on a ScriptableObject?

Mar 18, '22 c#·scriptableobject·scriptable object·awake·onenable

1 Reply

0 Votes

avatar image

toficofi commented

Prevent ExecuteInEditMode scripts to call Awake OnEnable Start after compiling and game exit

Mar 22, '21 mesh·executeineditmode·onenable

1 Reply

0 Votes

avatar image

guneyozsan commented

OnEnable called before Awake

Mar 17, '21 awake·onenable·execution-order

2 Replies

4 Votes

avatar image

ASWilburn asked

Having an issue with disappearing Music Player UI when switching scenes

Feb 21, '21 in Help Room

0 Replies

0 Votes

avatar image

Pepeco159 answered

Access singleton in OnEnable when it's initialized in Awake

Jul 28, '20 in Help Room

3 Replies

2 Votes

avatar image

nickk2002 edited

Custom Editor need for Awake function called when game starts

May 2, '20 in Help Room

0 Replies

0 Votes

avatar image

Quest_for_stuff asked

How to pass parameters to an object with an object pooling system?

Apr 28, '20 parameters·pooling·parameter·pool·onenable

0 Replies

0 Votes

avatar image

glennMediaMonks commented

Execution Order of Scripts - Awake and OnEnable

Oct 21, '19 scripting problem·start·awake·execution order·onenable

1 Reply

0 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

Rayeloy edited

Editor Script OnEnable() being executed whatever I do when pressing play in editor.

Mar 16, '19 in Help Room

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

MutimirEr asked

A way to know if unity was just opened? [ExecuteInEditMode]

Jan 29, '19 scripting problem·execution order·executeineditmode·open project·onenable

0 Replies

0 Votes

avatar image

ignacevau answered

Should OnEnabled() be changed to be called after Start()?

Dec 26, '18 start·awake·onenable

1 Reply

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

Harinezumi commented

OnEnable - Script Hot Reload - Script Execution Order

May 22, '18 reloading·compilation·onenable·script execution order

1 Reply

0 Votes

avatar image

anthot4 answered

OnEnable and Awake depreciated?

May 9, '18 bug-perhaps·awake·onenable

1 Reply

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

Nishat11 answered

OnEnable, Awake, Start order

Jan 5, '18 start·awake·onenable

8 Replies

21 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

Mese edited

gameObject.activeSelf is false from an OnEnable!

Dec 15, '17 gameobject·onenable

0 Replies

0 Votes

avatar image

Minuks edited

Can I call Awake() and OnEnable() separately?

Nov 28, '17 setactive·instantiate prefab·awake·onenable

1 Reply

0 Votes

avatar image

SnailGirl asked

serialized save and load not working in onEnable (SerializationStream supports seeking, but its length is 0)

Nov 23, '17 in Help Room

0 Replies

0 Votes

avatar image

Wilave asked

SceneManager.sceneLoaded Cannot Implicityly convert type int to...

Jul 3, '17 in Help Room

0 Replies

1 Votes

avatar image

shadowpuppet asked

such a thing as void OnSetActive (false)?

May 20, '17 in Help Room

0 Replies

0 Votes

avatar image

Bodrp edited

If a script is attached to more than one gameObject, will Start() & Awake() run more than once?

May 2, '17 gameobject·scripting beginner·start·awake·onenable

2 Replies

0 Votes

avatar image

_dns_ answered

void OnEnable() is called Unpredictably in Editor Mode

Mar 10, '17 ui·ui image·onenable

1 Reply

0 Votes

avatar image

mitchellson97 asked

Trouble Saving and Loading Serialization

Feb 9, '17 in Help Room

0 Replies

0 Votes

avatar image

kekel2ms edited

Bug in SceneManagement.LoadScene() when loading the same scene twice for some reason?

Jan 21, '17 in Help Room

0 Replies

0 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

awake ondisable start c# editor scripting problem gameobject setactive execution order waitforseconds scriptableobject instantiate prefab executeineditmode error message unity 5 scene custom editor editor-scripting scriptable object coroutine scene-switching save data collision instantiation parameters


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