C# Class DebugConsole, UnityFramework

Inheritance: MonoBehaviour
Datei anzeigen Open project: meta-42/uEasyKit Class Usage Examples

Public Properties

Property Type Description
_windowRect Rect
defaultColor Color
errorColor Color
inputColor Color
isOpenBriefView bool
logpath string
maxLinesForDisplay int
outputColor Color
systemColor Color
toggleKey KeyCode
warningColor Color

Public Methods

Method Description
ExecCMDInputString ( string inputCMD ) : void

执行一个命令

Log ( object message ) : void
Log ( object message, MessageType messageType ) : void
LogError ( object message ) : void
LogWarning ( object message ) : void
RegisterCommand ( string commandString, DebugCommand commandCallback, string CMD_Discribes ) : void
UnRegisterCommand ( string commandString ) : void

Private Methods

Method Description
BuildDisplayString ( ) : string
CMD_Clear ( ) : object
CMD_Help ( ) : object
CMD_SystemInfo ( ) : object
ClearLog ( ) : void
EvalInputString ( string inputString ) : void
LogMessage ( Message msg ) : void
OnBriefView ( ) : void
OnCMDView ( ) : void
OnDestroy ( ) : void
OnEnable ( ) : void
OnGUI ( ) : void
OnLogView ( ) : void
RegisterCommandCallback ( string commandString, DebugCommand commandCallback, string CMD_Discribes ) : void
UnRegisterCommandCallback ( string commandString ) : void

Method Details

ExecCMDInputString() public method

执行一个命令
public ExecCMDInputString ( string inputCMD ) : void
inputCMD string
return void

Log() public static method

public static Log ( object message ) : void
message object
return void

Log() public static method

public static Log ( object message, MessageType messageType ) : void
message object
messageType MessageType
return void

LogError() public static method

public static LogError ( object message ) : void
message object
return void

LogWarning() public static method

public static LogWarning ( object message ) : void
message object
return void

RegisterCommand() public static method

public static RegisterCommand ( string commandString, DebugCommand commandCallback, string CMD_Discribes ) : void
commandString string
commandCallback DebugCommand
CMD_Discribes string
return void

UnRegisterCommand() public static method

public static UnRegisterCommand ( string commandString ) : void
commandString string
return void

Property Details

_windowRect public_oe property

public Rect _windowRect
return Rect

defaultColor public_oe property

public Color defaultColor
return Color

errorColor public_oe property

public Color errorColor
return Color

inputColor public_oe property

public Color inputColor
return Color

isOpenBriefView public_oe property

public bool isOpenBriefView
return bool

logpath public_oe static_oe property

public static string logpath
return string

maxLinesForDisplay public_oe property

public int maxLinesForDisplay
return int

outputColor public_oe property

public Color outputColor
return Color

systemColor public_oe property

public Color systemColor
return Color

toggleKey public_oe static_oe property

public static KeyCode toggleKey
return KeyCode

warningColor public_oe property

public Color warningColor
return Color