文件格式支持
默认情况下,只有少数资源文件格式被启用:
- 图片:PNG 和 HDR
- 音频:OGG/Vorbis
你可以通过 cargo 功能启用更多格式:
- 图像:JPEG、TAG、BMP、DDS
- 音频:FLAC、MP3、WAV
[dependencies.bevy]
version = "0.6"
features = ["jpeg", "tga", "bmp", "dds", "flac", "mp3", "wav"]
默认情况下,只有少数资源文件格式被启用:
你可以通过 cargo 功能启用更多格式:
[dependencies.bevy]
version = "0.6"
features = ["jpeg", "tga", "bmp", "dds", "flac", "mp3", "wav"]