mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
Disable asset_loading and texture_atlas examples when building for wasm / WebGPU (#8683)
# Objective Remove the asset_loading and texture_atlas on the WebGPU examples page as they do not function properly. Both examples use folder loading that is not supported in a browser context and currently fail with the follow error: ``` panicked at 'called `Result::unwrap()` on an `Err` value: AssetFolderNotADirectory("textures/rpg")', examples/2d/texture_atlas.rs:31:75 ``` ## Solution Disable these examples when building for WebGPU / wasm.
This commit is contained in:
parent
594074149d
commit
18f4a49425
1 changed files with 2 additions and 2 deletions
|
@ -404,7 +404,7 @@ path = "examples/2d/texture_atlas.rs"
|
|||
name = "Texture Atlas"
|
||||
description = "Generates a texture atlas (sprite sheet) from individual sprites"
|
||||
category = "2D Rendering"
|
||||
wasm = true
|
||||
wasm = false
|
||||
|
||||
[[example]]
|
||||
name = "transparency_2d"
|
||||
|
@ -906,7 +906,7 @@ path = "examples/asset/asset_loading.rs"
|
|||
name = "Asset Loading"
|
||||
description = "Demonstrates various methods to load assets"
|
||||
category = "Assets"
|
||||
wasm = true
|
||||
wasm = false
|
||||
|
||||
[[example]]
|
||||
name = "custom_asset"
|
||||
|
|
Loading…
Reference in a new issue