Question by
KalleRosendahl · Jan 24, 2020 at 12:26 PM ·
gameobjectresetactivation
SetActive(false), and then back to true to call OnEnable
Hello, is there a quick/easy way to have a gameobject with two scripts attached, and call SetActive(false) on the gameobject. and from the same script on the inactive gameobject reverse it so gameobject is activated again?
I need to call OnEnable some lines after i have instantiated my gameobject. So basically im ignoring my first OnEnable, but want to call it again.
Comment
$$anonymous$$ade a quick fix, but for the future, I would appreciate an easy and clean method for this,
Your answer
Follow this Question
Related Questions
Reset rotation of gameobject 1 Answer
Problem optimization SetActive and Cloth 1 Answer
Enable or disable a gameobject with a buttonpress 0 Answers