Skip to content

PathManager

The PathManager class can be used to manage project paths.

静态方法

PathManager.rootPath ( ) : string
Returns the starting directory path of the project.
PathManager.assetPath ( ) : string
Returns the path of the resource directory.
PathManager.CalculateByProjectPath ( relative_path : string ) : string
Returns the full path with the project directory by specifying a relative path.
PathManager.CalculateByCachePath ( relative_path : string ) : string
Returns the full path with the project directory by specifying a relative path.
PathManager.CalculateRelativeProjectPath ( abs_path : string ) : string|undefined
Converts the given path to a relative path based on the project directory.