{
“ver”: “1.0.2”,
“uuid”: “3e67fe70-71d6-4f30-a682-37aa2273e64f”,
“textureUuid”: “7a91cda5-9eb1-4f83-b4a6-9c84f126f6c9”,
“fontSize”: 32,
“subMetas”: {}
}
{
“ver”: “2.0.0”,
“uuid”: “3e67fe70-71d6-4f30-a682-37aa2273e64f”,
“textureUuid”: “7a91cda5-9eb1-4f83-b4a6-9c84f126f6c9”,
“fontSize”: 32,
“subMetas”: {}
}
升级前后 也就那个ver变了
能否方面提供项目呢? 你右键点 fnt 对应的 png 资源,选择“前往 Library 中的资源位置”,然后把那个 json 的内容也帖一下。
{
“ver”: “1.0.0”,
“uuid”: “59c83bc9-42db-414c-becd-25338fc0b91f”,
“type”: “sprite”,
“wrapMode”: “clamp”,
“filterMode”: “bilinear”,
“subMetas”: {
“huodezi-export”: {
“ver”: “1.0.3”,
“uuid”: “22192c23-e210-4a8f-a497-8a454d38b18a”,
“rawTextureUuid”: “59c83bc9-42db-414c-becd-25338fc0b91f”,
“trimType”: “auto”,
“trimThreshold”: 1,
“rotated”: false,
“offsetX”: -0.5,
“offsetY”: 0.5,
“trimX”: 0,
“trimY”: 0,
“width”: 218,
“height”: 216,
“rawWidth”: 219,
“rawHeight”: 217,
“borderTop”: 0,
“borderBottom”: 0,
“borderLeft”: 0,
“borderRight”: 0,
“subMetas”: {}
}
}
}
从报错信息来看,你的 bmfont 对应的 png 并没有并正常地加载,导致 texture 没有创建出来。
fnt的ver和png的ver 不一样。有没有可能不匹配
这个有问题啊,你删除 这个 fnt 的 meta,然后重新打开编辑器试试
你qq?我加一下你。
跟 ver 没关系,你的 fnt 关联的 texture 不存在,meta 有问题。
应该就是 meta 的问题,你删除这个 bmfont 的 fnt 文件的 meta,然后回到编辑器会重新生成 meta。
你把重新生成的 fnt 的 meta 的内容再贴一下。
。。好多界面啊。不会让我从新设置一遍吧。。。
什么好多界面? 只是让你删除这个报错的 fnt 文件的对应的 meta 文件而已。
{
“ver”: “1.0.0”,
“uuid”: “59c83bc9-42db-414c-becd-25338fc0b91f”,
“type”: “sprite”,
“wrapMode”: “clamp”,
“filterMode”: “bilinear”,
“subMetas”: {
“huodezi-export”: {
“ver”: “1.0.3”,
“uuid”: “17f206c4-da85-4d3a-9679-33f355661759”,
“rawTextureUuid”: “59c83bc9-42db-414c-becd-25338fc0b91f”,
“trimType”: “auto”,
“trimThreshold”: 1,
“rotated”: false,
“offsetX”: -0.5,
“offsetY”: 0.5,
“trimX”: 0,
“trimY”: 0,
“width”: 218,
“height”: 216,
“rawWidth”: 219,
“rawHeight”: 217,
“borderTop”: 0,
“borderBottom”: 0,
“borderLeft”: 0,
“borderRight”: 0,
“subMetas”: {}
}
}
}
{
“ver”: “2.0.0”,
“uuid”: “1e529587-a286-4720-b372-1ca768561ad3”,
“textureUuid”: “59c83bc9-42db-414c-becd-25338fc0b91f”,
“fontSize”: 32,
“subMetas”: {}
}
现在运行应该可以了吧?
不行的。改变的只有UUID
还不行? 不可能吧?你加我 QQ 254041321, 把项目发给我看看?
我擦。我在给子龙山人 还原bug的时候。重新拖了一个fnt 进项目。然后所有的fnt 又可以正常工作了,
呃~~~ 还删除过项目所有文件。

