Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Add listener to "GameObject.SetActive"?

$
0
0
Hello. I'm writing a script that must do things when certain gameObject's "active" state is changed. I could just call some method inside this script instead of "GameObject.SetActive", but i'm curious - is there any way to add listener to GameObject's "SetActive" function, or at least modify GameObject class to make it possible?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>