C# Class TinyTeam.Debuger.Console

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: chiuan/TTConsole

Public Properties

Property Type Description
delegateInitCMD System.Action
delegateInitEventSystem System.Action
isNeedBindUnityLog bool

Private Properties

Property Type Description
AddPage void
AddToAsyncWriteBuff void
CMDClear object
CMDClose object
CMDHelp object
CMDShowCustomMessage object
CMDShowFPS object
CMDShowLoaderMessage object
CMDShowMemory object
CMDShowMessageType object
CMDShowNetMessage object
CMDStartAsyncLoging object
CMDSystemInfo object
CaculateCurrentMaxMsgCount int
ClearLog void
ColorToHex string
CreateNew Message
CreateNewLogFile void
DrawFPS void
DrawWindow void
DrawingContent void
EvalInputString void
FindBeginMsgIndexFromEnd int
FindCustomQueue Queue
FindEndMsgIndexFromBegin int
GetAllCurrentTypeMessages List
HexToColor Color
Init void
InitBlackground void
InitEventSystem void
InitInput void
InitScrollContent void
InitScrollView void
Log object
Log object
Log object
LogError object
LogMessage void
LogWarning object
OnLevelWasLoaded void
ProcessInput void
RegisterCommandCallback void
RunningAsyncWritingLog void
StartAsyncWriteLog void
StopAsyncWriteLog void
UnRegisterCommandCallback void
UpdateKeyCode void

Public Methods

Method Description
Clear ( ) : void

Clears all console output.

ExecCMDInputString ( string inputCMD ) : void
HandleUnityLog ( string condition, string stackTrace, LogType type ) : void
OnDestroy ( ) : void
RegisterCommand ( string commandString, object>.Func commandCallback, string CMD_Discribes ) : void
Start ( ) : void
UnRegisterCommand ( string commandString ) : void
Update ( ) : void

Private Methods

Method Description
AddPage ( int val ) : void

val : 1 , -1 mean left or right.

AddToAsyncWriteBuff ( string text ) : void

写入到文本缓冲区

CMDClear ( string args ) : object
CMDClose ( string args ) : object
CMDHelp ( string args ) : object
CMDShowCustomMessage ( string args ) : object
CMDShowFPS ( string args ) : object
CMDShowLoaderMessage ( string args ) : object
CMDShowMemory ( string args ) : object
CMDShowMessageType ( string args ) : object
CMDShowNetMessage ( string args ) : object
CMDStartAsyncLoging ( string args ) : object
CMDSystemInfo ( string args ) : object
CaculateCurrentMaxMsgCount ( ) : int
ClearLog ( ) : void
ColorToHex ( Color32 color ) : string
CreateNew ( object messageObject, MessageType messageType, Color displayColor, string customType ) : Message
CreateNewLogFile ( ) : void
DrawFPS ( ) : void
DrawWindow ( bool isHide ) : void
DrawingContent ( ) : void

draw the cosole windows dynamic NOTE:only show current page.

EvalInputString ( string inputString ) : void
FindBeginMsgIndexFromEnd ( ) : int
FindCustomQueue ( string customType ) : Queue
FindEndMsgIndexFromBegin ( ) : int
GetAllCurrentTypeMessages ( ) : List
HexToColor ( string hex ) : Color
Init ( ) : void
InitBlackground ( GameObject windows ) : void
InitEventSystem ( ) : void
InitInput ( GameObject windows ) : void
InitScrollContent ( GameObject scrollView ) : void
InitScrollView ( GameObject windows ) : void
Log ( object message, MessageType messageType ) : object
Log ( object message, string customType ) : object
Log ( object message, string customType, Color col ) : object
LogError ( object message, string customType ) : object
LogMessage ( Message msg ) : void
LogWarning ( object message, string customType ) : object
OnLevelWasLoaded ( int level ) : void
ProcessInput ( string cmd ) : void
RegisterCommandCallback ( string commandString, object>.Func commandCallback, string CMD_Discribes ) : void
RunningAsyncWritingLog ( ) : void
StartAsyncWriteLog ( ) : void

Start A asyncWriteLog Server.

StopAsyncWriteLog ( ) : void
UnRegisterCommandCallback ( string commandString ) : void
UpdateKeyCode ( ) : void

Method Details

Clear() public static method

Clears all console output.
public static Clear ( ) : void
return void

ExecCMDInputString() public method

public ExecCMDInputString ( string inputCMD ) : void
inputCMD string
return void

HandleUnityLog() public method

public HandleUnityLog ( string condition, string stackTrace, LogType type ) : void
condition string
stackTrace string
type LogType
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

RegisterCommand() public static method

public static RegisterCommand ( string commandString, object>.Func commandCallback, string CMD_Discribes ) : void
commandString string
commandCallback object>.Func
CMD_Discribes string
return void

Start() public method

public Start ( ) : void
return void

UnRegisterCommand() public static method

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

Update() public method

public Update ( ) : void
return void

Property Details

delegateInitCMD public property

public Action,System delegateInitCMD
return System.Action

delegateInitEventSystem public property

public Action,System delegateInitEventSystem
return System.Action

isNeedBindUnityLog public static property

unity log binding
public static bool isNeedBindUnityLog
return bool