unity技巧之输出log并定位对象

可以在输出log中添加对游戏对象的引用,这样你就可以在Hierarchy中选中游戏对象了。
比如:

Debug.Log(This is the gameObject calling the debug log”, gameObject);

猜你喜欢

转载自blog.csdn.net/C_yuxuan/article/details/116060810