C# Class AssetBundleGraph.FileUtility

Afficher le fichier Open project: unity3d-jp/AssetGraph Class Usage Examples

Méthodes publiques

Méthode Description
ContainsHiddenFiles ( string filePath ) : bool
CopyFileFromGlobalToLocal ( string absoluteSourceFilePath, string localTargetFilePath ) : void
DeleteFileThenDeleteFolderIfEmpty ( string localTargetFilePath ) : void
EnsureAssetBundleCacheDirExists ( BuildTarget t, NodeData node, bool remake = false ) : string
EnsurePrefabBuilderCacheDirExists ( BuildTarget t, NodeData node ) : string
GetAllFilePathsInFolder ( string localFolderPath, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : List
GetFilePathsInFolder ( string folderPath, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : List
GetPathWithAssetsPath ( string pathUnderAssetsFolder ) : string
GetPathWithProjectPath ( string pathUnderProjectFolder ) : string
IsMetaFile ( string filePath ) : bool
PathCombine ( ) : string
ProjectPathWithSlash ( ) : string
RemakeDirectory ( string localFolderPath ) : void

Private Methods

Méthode Description
GetFilePathsRecursively ( string localFolderPath, List filePaths, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : void
_PathCombine ( string head, string tail ) : string

Method Details

ContainsHiddenFiles() public static méthode

public static ContainsHiddenFiles ( string filePath ) : bool
filePath string
Résultat bool

CopyFileFromGlobalToLocal() public static méthode

public static CopyFileFromGlobalToLocal ( string absoluteSourceFilePath, string localTargetFilePath ) : void
absoluteSourceFilePath string
localTargetFilePath string
Résultat void

DeleteFileThenDeleteFolderIfEmpty() public static méthode

public static DeleteFileThenDeleteFolderIfEmpty ( string localTargetFilePath ) : void
localTargetFilePath string
Résultat void

EnsureAssetBundleCacheDirExists() public static méthode

public static EnsureAssetBundleCacheDirExists ( BuildTarget t, NodeData node, bool remake = false ) : string
t BuildTarget
node NodeData
remake bool
Résultat string

EnsurePrefabBuilderCacheDirExists() public static méthode

public static EnsurePrefabBuilderCacheDirExists ( BuildTarget t, NodeData node ) : string
t BuildTarget
node NodeData
Résultat string

GetAllFilePathsInFolder() public static méthode

public static GetAllFilePathsInFolder ( string localFolderPath, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : List
localFolderPath string
includeHidden bool
includeMeta bool
Résultat List

GetFilePathsInFolder() public static méthode

public static GetFilePathsInFolder ( string folderPath, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : List
folderPath string
includeHidden bool
includeMeta bool
Résultat List

GetPathWithAssetsPath() public static méthode

public static GetPathWithAssetsPath ( string pathUnderAssetsFolder ) : string
pathUnderAssetsFolder string
Résultat string

GetPathWithProjectPath() public static méthode

public static GetPathWithProjectPath ( string pathUnderProjectFolder ) : string
pathUnderProjectFolder string
Résultat string

IsMetaFile() public static méthode

public static IsMetaFile ( string filePath ) : bool
filePath string
Résultat bool

PathCombine() public static méthode

public static PathCombine ( ) : string
Résultat string

ProjectPathWithSlash() public static méthode

public static ProjectPathWithSlash ( ) : string
Résultat string

RemakeDirectory() public static méthode

public static RemakeDirectory ( string localFolderPath ) : void
localFolderPath string
Résultat void