C# 클래스 KUnityEditorTools.KEditorUtils

Shell / cmd / 等等常用Editor需要用到的工具集
파일 보기 프로젝트 열기: mr-kelly/KEngine 1 사용 예제들

공개 메소드들

메소드 설명
CallMainThread ( System.Action action ) : void

异步线程回到主线程进行回调

ClearConsoleLog ( ) : void

清除Console log

EachDirectoryFiles ( string dirPath, EachDirectoryDelegate eachCallback ) : void

递归一个目录所有文件,callback

ExecuteCommand ( string command, string workingDirectory = null ) : void

执行批处理命令

FindAllPublicTypes ( Type findType ) : IList

从所有的程序集收集指定类型,public, 包括继承的

FindStrMatchesInFolderTexts ( string sourceFolder, Regex searchWord, bool>.Func fileFilter = null ) : List>.Dictionary

在指定目录中搜寻字符串并返回匹配}

GetCleanPath ( string path ) : string

将丑陋的windows路径,替换掉\字符

비공개 메소드들

메소드 설명
AddFileNamesToList ( string sourceDir, List allFiles ) : void
KEditorUtils ( ) : System
OnEditorUpdate ( ) : void

捕获Unity Editor update事件

메소드 상세

CallMainThread() 공개 정적인 메소드

异步线程回到主线程进行回调
public static CallMainThread ( System.Action action ) : void
action System.Action
리턴 void

ClearConsoleLog() 공개 정적인 메소드

清除Console log
public static ClearConsoleLog ( ) : void
리턴 void

EachDirectoryFiles() 공개 정적인 메소드

递归一个目录所有文件,callback
public static EachDirectoryFiles ( string dirPath, EachDirectoryDelegate eachCallback ) : void
dirPath string
eachCallback EachDirectoryDelegate
리턴 void

ExecuteCommand() 공개 정적인 메소드

执行批处理命令
public static ExecuteCommand ( string command, string workingDirectory = null ) : void
command string
workingDirectory string
리턴 void

FindAllPublicTypes() 공개 정적인 메소드

从所有的程序集收集指定类型,public, 包括继承的
public static FindAllPublicTypes ( Type findType ) : IList
findType System.Type
리턴 IList

FindStrMatchesInFolderTexts() 공개 정적인 메소드

在指定目录中搜寻字符串并返回匹配}
public static FindStrMatchesInFolderTexts ( string sourceFolder, Regex searchWord, bool>.Func fileFilter = null ) : List>.Dictionary
sourceFolder string
searchWord System.Text.RegularExpressions.Regex
fileFilter bool>.Func
리턴 List>.Dictionary

GetCleanPath() 공개 정적인 메소드

将丑陋的windows路径,替换掉\字符
public static GetCleanPath ( string path ) : string
path string
리턴 string