获取本地时间 SystemDateTime currentTime = SystemDateTimeNow; 将时间格式化为字符串 string timeString = currentTimeToStringyyyyMMdd HHmmss; 在控制台输出本地时间 DebugLogLocal Time + timeStri
您可以在输出的字符串中添加想要的文本,以输出时间和"断路器"这三个字。例如:
Debug.Log("时间:" + timeString + " 断路器");
原文地址: https://www.cveoy.top/t/topic/iFHQ 著作权归作者所有。请勿转载和采集!