PathManager
PathManager类可以用于对项目路径的管理。
静态方法
PathManager.rootPath ( ) : string |
| 返回项目的起始目录路径。 |
PathManager.assetPath ( ) : string |
| 返回资源目录的路径。 |
PathManager.CalculateByProjectPath ( relative_path : string ) : string |
| 通过指定相对的路径返回带有项目目录的完整路径。 |
PathManager.CalculateByCachePath ( relative_path : string ) : string |
| 通过指定相对的路径返回带有项目目录的完整路径。 |
PathManager.CalculateRelativeProjectPath ( abs_path : string ) : string|undefined |
| 将给定的路径转换成基于项目目录的相对路径。 |
