Debug 调试


Class containing methods to ease debugging while developing a game.

此类包含开发游戏时便于调试的方法。

Class Variables类变量

  • isDebugBuild
    In the Build Settings dialog there is a check box called "Development Build".
          在Build Settings对话框有个Debug Build复选框。

Class Functions类函数

  • DrawLine
    Draws a line from the point start to end with color for a duration of time. If duration is 0 then the line is rendered 1 frame.
          从start起点到end末点,经过duration一段时间,绘制一条color颜色的线。如果duration为0,那么这条线在1帧中被渲染。
  • DrawRay
    Draws a line from start to start + dir with color for a duration of time. If duration is 0 then the line is rendered 1 frame.
       从start起始位置到start+dir,经过duration一段时间,绘制一条color颜色的线。如果duration为0,那么这条线在1帧中被渲染。
  • Break
    Pauses the editor.
          暂停编辑器。
  • Log
    Logs message to the Unity Console.
          记录消息到Unity控制台。
  • LogError
    A variant of Debug.Log that logs an error message to the console.
          Debug.Log的一个变体,是用来记录一个错误消息到控制台。
  • LogWarning
    A variant of Debug.Log that logs a warning message to the console.
          Debug.Log的一个变体,是用来记录一个警告消息到控制台。


,