Debug.LogFormat("We are Instantiating LocalPlayer from {0}", SceneManagerHelper.ActiveSceneName);
将格式化的消息记录到Unity控制台。
就跟string的format一样。
例:
int n=1;
string.format("n = {0}", n);
输出就是“n = 1”
Debug.LogFormat("hello : {0}","lishengfu");