public class NewBehaviourScript : MonoBehaviour
{
void Start()
{
print(1); // 只能在继承MonoBehaviour脚本中使用
print("12345"); //也可以输出字符串
Debug.Log(1);// 任意类型的类中使用
Debug.Log("12345");//
Debug.LogWarning("12345");//黄色警告
Debug.LogError("12345");//红色错误警告
}
}
C#学习日记--unity日志输出
最新推荐文章于 2024-06-27 15:35:44 发布