- Home /
OnEnable and Awake depreciated?
So not sure if it is something else or not but I had a project in 2017.4.0f1 and OnEnable and Awake worked fine as expected. Now I moved the project to 2018.1.0f2 and all the old scripts work fine. However anything that I add now that uses OnEnable or Awake never seem to be called wondering if something changed from 2017 to 2018 to stop using OnEnable and Awake?
The other thing about above is even if I make a duplicate of the gameobject in the scene only the one from 2017 will work the duplicated gameobject just does not work. I did a breakpoint in the script and noticed that anything created in the 2018 version says IsActiveAndEnabled is false and all the 2017 versions say true.
2018 GameObject
2017GameObject
Apologies if this comes off as a confusing question I was having a hard time formulating the question.
Share the OnEnable and Awake code. Are you sure all objects are enabled?
Answer by anthot4 · May 09, 2018 at 11:30 AM
Strange I'm using 2018.1 and the OnEnable and Awake functions work for me.