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 Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

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