Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 403 on loading assets #42

Open
aesee opened this issue Feb 6, 2025 · 0 comments
Open

Error 403 on loading assets #42

aesee opened this issue Feb 6, 2025 · 0 comments

Comments

@aesee
Copy link

aesee commented Feb 6, 2025

I'm encountering a persistent issue when trying to load assets (a GLTF model and OGG audio file) in my project. Regardless of how I attempt to load these assets, I consistently receive a 403 error. Interestingly, I tried the example for loading an image, and it works without any issues.
The following code works when I replace paths with local ones.

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
 
    let mesh_scene: Handle<Scene> =
        asset_server.load(GltfAssetLabel::Scene(0).from_asset("https://patchxrassets-dev.s3.eu-north-1.amazonaws.com/aesee-m6pfxsln-BarramundiFish.glb"));

    commands.spawn((
        SceneRoot(mesh_scene.clone()),
        AudioPlayer::new(asset_server.load(
            "https://patchxrassets-dev.s3.eu-north-1.amazonaws.com/aesee-m6teqcch-sample_01.ogg",
        )),
        PlaybackSettings::LOOP.with_spatial(true),
    ));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant