C# Класс TinyTeam.Debuger.Console

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
delegateInitCMD System.Action
delegateInitEventSystem System.Action
isNeedBindUnityLog bool

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Clear() публичный статический Метод

Clears all console output.
public static Clear ( ) : void
Результат void

ExecCMDInputString() публичный Метод

public ExecCMDInputString ( string inputCMD ) : void
inputCMD string
Результат void

HandleUnityLog() публичный Метод

public HandleUnityLog ( string condition, string stackTrace, LogType type ) : void
condition string
stackTrace string
type LogType
Результат void

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

RegisterCommand() публичный статический Метод

public static RegisterCommand ( string commandString, object>.Func commandCallback, string CMD_Discribes ) : void
commandString string
commandCallback object>.Func
CMD_Discribes string
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

UnRegisterCommand() публичный статический Метод

public static UnRegisterCommand ( string commandString ) : void
commandString string
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

delegateInitCMD публичное свойство

public Action,System delegateInitCMD
Результат System.Action

delegateInitEventSystem публичное свойство

public Action,System delegateInitEventSystem
Результат System.Action

isNeedBindUnityLog публичное статическое свойство

unity log binding
public static bool isNeedBindUnityLog
Результат bool