News: Enjoy our Christmas offer 30% off on our latest package Tower Defense Level Kit http://u3d.as/m7h

  • November 21, 2018, 04:37:02 AM

Login with username, password and session length

Author Topic: Suggestion - deactivate after Close Option  (Read 935 times)

Offline xyzDave

  • Newbie
  • *
  • Posts: 9
Suggestion - deactivate after Close Option
« 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

Offline Nicolas

  • Administrator
  • Hero Member
  • *****
  • Posts: 792
Re: Suggestion - deactivate after Close Option
« Reply #1 on: December 12, 2015, 10:26:13 AM »
Hi,

Yes, you can provide your modifiation

Nicolas