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.

Related Posts
1 Comment + Add Comment
Leave a comment
Recent posts
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by












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