Jul
7
2020

Find out which script Disabled or Enabled this GameObject?

Small script to help tracking who disabled or enabled gameobject,
https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Helpers/Debug/WhoDisabledOrEnabled.cs

Usage:
– Add script to the gameobject you need to track
– press play
– see console for the error messages, select the error message row, and see stack trace for the calling script names and lines.


1 Comment + Add Comment

  • Why doesn’t unity team take script made through the github to add as standard scripts for users.

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative
Support my work at Bags.fm:

https://bags.fm/CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS

Coin:

CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.