| | |
| | | {typeof(Sprite), "png"}, |
| | | {typeof(Texture2D), "jpg"}, |
| | | {typeof(Texture), "jpg"}, |
| | | { typeof(Shader), "shader"}, |
| | | {typeof(Shader), "shader"}, |
| | | {typeof(TextAsset), "txt"}, |
| | | {typeof(AudioClip), "wav"}, |
| | | {typeof(Font), "ttf"}, |
| | |
| | | //外部用到的自己加后缀,内部统一去除后缀名 |
| | | name = name.Substring(0, name.LastIndexOf(".")); |
| | | } |
| | | |
| | | //TODO: 临时特殊处理打包后的路径读取 |
| | | if (directory == "UI" || directory == "UIComp" || directory.StartsWith("Sprite") |
| | | || directory == "Battle/Prefabs" || directory == "Materials") |
| | | { |
| | |
| | | { |
| | | directory = "maps/" + name; |
| | | } |
| | | else if (directory.Contains("Shader")) |
| | | { |
| | | directory = "graphic/shader"; |
| | | } |
| | | |
| | | |
| | | var assetInfo = new AssetInfo(directory.ToLower(), name.ToLower()); |