bevy_ecs_tilemap 无法加载平铺的 .tsx 文件

问题描述 投票:0回答:0

背景

我正在和 Bevy 一起开发 2D 游戏。我想使用带有平铺的 tilesets。我找到了箱子 bevy_ecs_tilemap,我看起来很有希望找到一个简单的解决方案。我有这样的文件结构,想加载

world.tmx

tilesets
├── floor
│   ├── ground.tiled-project
│   ├── ground.tiled-session
│   ├── ground.tsx
│   ├── Rules
│   │   └── autotile rules.tmx
│   ├── rules.txt
│   └── world.tmx
└── test.tmx

问题

我按照提供的示例使用平铺但是当我运行它时我得到这个错误

WARN bevy_asset::asset_server: encountered an error while loading an asset: Could not load TMX map: Could not open 'tilesets/floor/ground.tsx'. Error: No such file or directory (os error 2)
即使我确实存在。

我试过的

我试过使用不依赖于任何东西的 tilemap,它确实有效(这就是 test.tmx 是什么)

rust tiled bevy tmxtiledmap
© www.soinside.com 2019 - 2024. All rights reserved.