Unity URP DOTS Debug.log

如果你想在Burst里debug,首先Burst要大于1.3.0

然后后用以下格式

Debug.Log (string.Format ("{0}", x));

或者

Debug.Log($"x");

然后如你的Burst版本出现不能使用foreach,就用for,我是1.6.4的版本可以使用foreach

嗯,就这样 

猜你喜欢

转载自blog.csdn.net/lvcoc/article/details/123827625