The Hedgehog Team Community

General Category => Easy UI Motion => Topic started by: xyzDave on December 11, 2015, 05:24:38 PM

Title: Suggestion - deactivate after Close Option
Post by: xyzDave on December 11, 2015, 05:24:38 PM
Hi,
a really neat feature I feel is missing is a flag to deactivate the game object when the close has completed.
That way, when completed the object vanishes, and only re-appears when using SetActive(true).
This has the bonus feature that if you add a script to the Game Object, you can use the OnEnable to setup the state of the GameObject every time it's turned on (and trigger the Open for example).

I can supply code if you are interested as I've added it already, just would be cool if you like it and added it to the library for future releases.

If you don't like the idea, no worries, just thought it would be neat - I'm using it already :o)
Thanks
Dave
Title: Re: Suggestion - deactivate after Close Option
Post by: Nicolas on December 12, 2015, 10:26:13 AM
Hi,

Yes, you can provide your modifiation

Nicolas