不管怎么拖,都拖不进去,新建一个新项目,也是一样
重新打开后,出现无法展开的一个文件
![]()
1赞
中文路径的问题?重命名中文名文件夹试试
改了,还是一样
请问你的图片是什么类型的文件呢?是否可以将出问题的资源发上来方便我们重现问题?
可以。。你看看
@691553316 我重现了你的问题。查了一下,目前编辑器中暂时不支持 format 为 0 的 plist 文件。这个应该是需要完善的。你可以将你的资源重新导出 format 为 2 或者 3 的 plist 文件暂时绕过此问题。
我们也会进一步完善相关的支持。谢谢反馈!
好的,谢谢帮助
把format改成2或3也不行呀?
不是手动修改这个值。而是要通过工具选择正确的格式然后重新导出 plist 与 png 文件。
我不清楚 format 0 代表的是什么格式。但是如果你用 TexturePacker 导出 plist 与 png 的话,导出时选择 cocos2d 或者 cocos2d-x ,那么导出的 format 为 3。
你的这些 plist 文件是用 TexturePacker 导出的吗?如果是的话,TexturePacker 版本是多少呢?我看了下 plist 文件中的 metadata 数据格式与目前支持的不一致…出现问题的 plist 文件中 metadata 是这样的:
<key>metadata</key>
<dict>
<key>version</key>
<string>1.6.0</string>
<key>format</key>
<integer>3</integer>
<key>size</key>
<string>{1024, 2048}</string>
<key>name</key>
<string>gameArts</string>
<key>target</key>
<dict>
<key>name</key>
<string>default</string>
<key>textureFileName</key>
<string>gameArts-hd</string>
<key>textureFileExtension</key>
<string>.png</string>
<key>coordinatesFileName</key>
<string>gameArts-hd</string>
<key>coordinatesFileExtension</key>
<string>.plist</string>
<key>premultipliedAlpha</key>
<false/>
</dict>
</dict>
而目前 Creator 解析器所支持的 metadata 格式是这样的(有 realTextureFileName 或者 textureFileName 字段):
<key>metadata</key>
<dict>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>atlas.png</string>
<key>size</key>
<string>{716,119}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:db54f5d8fc876d2b8dd51f7c0e0487e2:3e6ff3c157e0bd68f6b238b4b8a3276b:21d34b1ac1e7d41f765d139a133eeccc$</string>
<key>textureFileName</key>
<string>atlas.png</string>
</dict>
这个是我在网上拿的,飞机大战的素材,之前的不是用TexturePacker导出的