C# Класс BuildReportTool.Util

Показать файл Открыть проект

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

Метод Описание
AttemptGetAndroidTempStagingArea ( string projectDataPath, string &path ) : bool
AttemptGetUnityFolderMonoDLLs ( bool wasWebBuild, bool wasAndroidApkBuild, string editorAppContentsPath, ApiCompatibilityLevel monoLevel, StrippingLevel codeStrippingLevel, string &path, string &higherPriorityPath ) : bool
AttemptGetWebTempStagingArea ( string projectDataPath, string &path ) : bool
BuildInfoHasContents ( BuildInfo n ) : bool
CreateSizePartFromFile ( string filename, string fileFullPath ) : BuildReportTool.SizePart
DeleteSizePartFile ( SizePart file ) : void
DoesFileBeginWith ( string filepath, string stringToCheck ) : bool
FileHasContents ( string filepath, string contents ) : bool
FindAssetFolder ( string folderToStart, string desiredFolderName ) : string
GetAllScenesUsedInProject ( ) : string[]
GetApproxSizeFromString ( string size ) : double
GetBuildManagedFolder ( string buildFilePath ) : string
GetBuildPlatformBasedOnUnityBuildTarget ( BuildTarget b ) : BuildPlatform
GetBytesReadable ( double bytes ) : string
GetFileSizeInBytes ( string filename ) : int
GetFileSizeReadable ( string filename ) : string
GetFolderSizeInBytes ( string folderPath ) : double
GetFolderSizeReadable ( string folderPath ) : string
GetObbSizeInEclipseProject ( string eclipseProjectPath ) : double
GetObbSizeInEclipseProjectReadable ( string eclipseProjectPath ) : string
GetPackageFileContents ( string filename ) : string
GetPathSizeInBytes ( string fileOrFolder ) : double
GetPathSizeReadable ( string fileOrFolder ) : string
GetProjectName ( string projectAssetsFolderPath ) : string
GetStreamingAssetsSizeReadable ( ) : string
GetTextFileContents ( string file ) : string
GetUserHomeFolder ( ) : string
HaveToUseSystemForDelete ( string file ) : bool
IsAScriptDLL ( string filename ) : bool
IsFileAUnixHiddenFile ( string filepath ) : bool
IsFileInAPath ( string filepath, string pathToCheck ) : bool
IsFileInBuildReportFolder ( string filepath ) : bool
IsFileInEditorFolder ( string filepath ) : bool
IsFileInVersionControlMetadataFolder ( string filepath ) : bool
IsFileName ( string filepath, string filenameToCheck ) : bool
IsFileOfType ( string filepath, string typeExtenstion ) : bool
IsFileOkForDeleteAllOperation ( string filepath ) : bool
IsUselessFile ( string filepath ) : bool
MyHtmlDecode ( string input ) : string
OpenInFileBrowser ( string path ) : void
OpenInFileBrowserTest ( ) : void
OpenInMacFileBrowser ( string path ) : void
OpenInWinFileBrowser ( string path ) : void
OpenSerializedBuildInfo ( string serializedBuildInfoFilePath, bool fromMainThread = true ) : BuildInfo
RemovePrefix ( string prefix, string val ) : string
RemoveSuffix ( string suffix, string val, int offset ) : string
ReplaceFileType ( string filename, string newFileType ) : string
SerializeBuildInfo ( BuildInfo buildInfo, string serializedBuildInfoFilePath ) : void
SerializeBuildInfoAtFolder ( BuildInfo buildInfo, string pathToSave ) : void
ShowFileDeleteProgress ( int deletedSoFar, int totalToDelete, string filepath, bool showRecoverableMsg ) : bool

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

Метод Описание
DeleteFile ( string file ) : void
DeleteFile ( string projectFolder, string file ) : void
FixXmlBuildReportFile ( string serializedBuildInfoFilePath ) : string
GetEditorLogFileInWindows ( string editorFilename = "Editor.log" ) : string
GetLastFolder ( string inFolder ) : string
GetProjectTempStagingArea ( string projectDataPath ) : string
MyFileSizeReadable ( double bytes ) : string
SaveTextFile ( string saveFilePath, string data ) : void
SystemDeleteFile ( string file ) : void
TextFileHasContents ( string filepath, string contents ) : bool

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

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

public static AttemptGetAndroidTempStagingArea ( string projectDataPath, string &path ) : bool
projectDataPath string
path string
Результат bool

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

public static AttemptGetUnityFolderMonoDLLs ( bool wasWebBuild, bool wasAndroidApkBuild, string editorAppContentsPath, ApiCompatibilityLevel monoLevel, StrippingLevel codeStrippingLevel, string &path, string &higherPriorityPath ) : bool
wasWebBuild bool
wasAndroidApkBuild bool
editorAppContentsPath string
monoLevel ApiCompatibilityLevel
codeStrippingLevel StrippingLevel
path string
higherPriorityPath string
Результат bool

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

public static AttemptGetWebTempStagingArea ( string projectDataPath, string &path ) : bool
projectDataPath string
path string
Результат bool

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

public static BuildInfoHasContents ( BuildInfo n ) : bool
n BuildInfo
Результат bool

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

public static CreateSizePartFromFile ( string filename, string fileFullPath ) : BuildReportTool.SizePart
filename string
fileFullPath string
Результат BuildReportTool.SizePart

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

public static DeleteSizePartFile ( SizePart file ) : void
file SizePart
Результат void

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

public static DoesFileBeginWith ( string filepath, string stringToCheck ) : bool
filepath string
stringToCheck string
Результат bool

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

public static FileHasContents ( string filepath, string contents ) : bool
filepath string
contents string
Результат bool

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

public static FindAssetFolder ( string folderToStart, string desiredFolderName ) : string
folderToStart string
desiredFolderName string
Результат string

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

public static GetAllScenesUsedInProject ( ) : string[]
Результат string[]

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

public static GetApproxSizeFromString ( string size ) : double
size string
Результат double

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

public static GetBuildManagedFolder ( string buildFilePath ) : string
buildFilePath string
Результат string

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

public static GetBuildPlatformBasedOnUnityBuildTarget ( BuildTarget b ) : BuildPlatform
b BuildTarget
Результат BuildPlatform

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

public static GetBytesReadable ( double bytes ) : string
bytes double
Результат string

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

public static GetFileSizeInBytes ( string filename ) : int
filename string
Результат int

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

public static GetFileSizeReadable ( string filename ) : string
filename string
Результат string

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

public static GetFolderSizeInBytes ( string folderPath ) : double
folderPath string
Результат double

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

public static GetFolderSizeReadable ( string folderPath ) : string
folderPath string
Результат string

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

public static GetObbSizeInEclipseProject ( string eclipseProjectPath ) : double
eclipseProjectPath string
Результат double

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

public static GetObbSizeInEclipseProjectReadable ( string eclipseProjectPath ) : string
eclipseProjectPath string
Результат string

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

public static GetPackageFileContents ( string filename ) : string
filename string
Результат string

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

public static GetPathSizeInBytes ( string fileOrFolder ) : double
fileOrFolder string
Результат double

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

public static GetPathSizeReadable ( string fileOrFolder ) : string
fileOrFolder string
Результат string

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

public static GetProjectName ( string projectAssetsFolderPath ) : string
projectAssetsFolderPath string
Результат string

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

public static GetStreamingAssetsSizeReadable ( ) : string
Результат string

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

public static GetTextFileContents ( string file ) : string
file string
Результат string

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

public static GetUserHomeFolder ( ) : string
Результат string

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

public static HaveToUseSystemForDelete ( string file ) : bool
file string
Результат bool

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

public static IsAScriptDLL ( string filename ) : bool
filename string
Результат bool

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

public static IsFileAUnixHiddenFile ( string filepath ) : bool
filepath string
Результат bool

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

public static IsFileInAPath ( string filepath, string pathToCheck ) : bool
filepath string
pathToCheck string
Результат bool

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

public static IsFileInBuildReportFolder ( string filepath ) : bool
filepath string
Результат bool

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

public static IsFileInEditorFolder ( string filepath ) : bool
filepath string
Результат bool

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

public static IsFileInVersionControlMetadataFolder ( string filepath ) : bool
filepath string
Результат bool

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

public static IsFileName ( string filepath, string filenameToCheck ) : bool
filepath string
filenameToCheck string
Результат bool

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

public static IsFileOfType ( string filepath, string typeExtenstion ) : bool
filepath string
typeExtenstion string
Результат bool

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

public static IsFileOkForDeleteAllOperation ( string filepath ) : bool
filepath string
Результат bool

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

public static IsUselessFile ( string filepath ) : bool
filepath string
Результат bool

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

public static MyHtmlDecode ( string input ) : string
input string
Результат string

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

public static OpenInFileBrowser ( string path ) : void
path string
Результат void

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

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

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

public static OpenInMacFileBrowser ( string path ) : void
path string
Результат void

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

public static OpenInWinFileBrowser ( string path ) : void
path string
Результат void

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

public static OpenSerializedBuildInfo ( string serializedBuildInfoFilePath, bool fromMainThread = true ) : BuildInfo
serializedBuildInfoFilePath string
fromMainThread bool
Результат BuildInfo

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

public static RemovePrefix ( string prefix, string val ) : string
prefix string
val string
Результат string

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

public static RemoveSuffix ( string suffix, string val, int offset ) : string
suffix string
val string
offset int
Результат string

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

public static ReplaceFileType ( string filename, string newFileType ) : string
filename string
newFileType string
Результат string

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

public static SerializeBuildInfo ( BuildInfo buildInfo, string serializedBuildInfoFilePath ) : void
buildInfo BuildInfo
serializedBuildInfoFilePath string
Результат void

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

public static SerializeBuildInfoAtFolder ( BuildInfo buildInfo, string pathToSave ) : void
buildInfo BuildInfo
pathToSave string
Результат void

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

public static ShowFileDeleteProgress ( int deletedSoFar, int totalToDelete, string filepath, bool showRecoverableMsg ) : bool
deletedSoFar int
totalToDelete int
filepath string
showRecoverableMsg bool
Результат bool