The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I have removed a resource file that I didn't think was used in the project. However, I found a handful of errors when starting up the game that tell me that Godot was unable to load the resource. Clicking the error however only goes to the error in the c++ source code, and doesn't tell me where the error is originating from.

Does anyone know how to locate the scene that is using a specific resource?

Godot version 3.4.3
in Engine by (28 points)

I ended up solving this by grepping the missing resource in the project sources and removing all occurrences of it by hand with an external text editor. This isn't ideal though, so I'll be waiting for other answers that may have a better solution.

1 Answer

0 votes
Best answer

You might get more information by launching the game in verbose mode ("verbose output" in Project Settings, I believe? Otherwise launch from command line with -v).
When the first load error occurs, previous log entries in the console might tell you what it tried to load. Otherwise I don't think there is any other way without that setting.

You could also try opening scenes of your game, and the editor might tell you if they failed to load something.

Next time you want to remove a resource, try doing so from the editor, maybe it will check for you if scenes depend on it.
But it isn't flawless, so indeed, doing a global text search remains the most reliable way to check where a resource is used. Not just for scenes, but also scripts that might load it by name.

by (29,360 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.