Skip to content

Conversation

@samoylovfp
Copy link
Contributor

Objective

This is a follow up to https://github.com/bevyengine/bevy/pull/21713/files

I noticed something weird in the migration guide --- the asset_path method was removed,
so proposed fix now yields

no method named `asset_path` found for mutable reference `&mut LoadContext<'c>` in the current scope

The actual change to get the original path is .path().path()

Solution

Updated the migration guide

Testing

I've played around with load_context in GltfLoader and checked the signatures the methods return


Found this thanks to Alice's merge train

the `asset_path` method was removed, so proposed fix now yields
`no method named `asset_path` found for mutable reference `&mut LoadContext<'c>` in the current scope`

The actual fix to get the original path is `.path().path()`
@janhohenheim janhohenheim added C-Docs An addition or correction to our documentation D-Trivial Nice and easy! A great choice to get started with Bevy A-Assets Load files from disk to use for things like images, models, and sounds S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Nov 20, 2025
@janhohenheim
Copy link
Member

good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Assets Load files from disk to use for things like images, models, and sounds C-Docs An addition or correction to our documentation D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants