可以在输出log中添加对游戏对象的引用,这样你就可以在Hierarchy中选中游戏对象了。 比如:
Debug.Log(“This is the gameObject calling the debug log”, gameObject);