godot-docs icon indicating copy to clipboard operation
godot-docs copied to clipboard

Document the `.gdignore` file on the "Import process" page

Open BlueG opened this issue 8 months ago • 3 comments

Documented Godot Version: 4.6

Issue description: It would help to document that the .gdignore file can be used to ignore folders in Godot's project folder. I had to find this information elsewhere and it is currently the only way I know of to ignore asset source folders placed inside Godot's project folder.

URL of Existing Page: https://docs.godotengine.org/en/stable/tutorials/assets_pipeline/import_process.html

BlueG avatar Mar 25 '26 13:03 BlueG

We could link to "Project organization" there, but I'd argue users are expected to have read this already

AThousandShips avatar Mar 25 '26 13:03 AThousandShips

@AThousandShips

Just read the Key Point if you don't want the whole story (also Thank you below)

I've read through all the best practices before. And I didn't know about it. Probably because I read it in an older version and now just search for the information I need. Not that I would have thought to look in best practices for that information.

In this case, I already knew about .gdignore from AI, but wanted details (I don't trust AI). So, I read through the Import process page as well as other pages in the "Assets pipeline" section. I was looking for other details about the import process as well, so it made sense at the time. A variety of Google searches also turn up results, but I already had the core piece of information that I needed.

Key Point

I would argue, though, that the entire "Importing" section of the Project organization page belongs in the documentation about the import process, because it is documenting what Godot does, as opposed to a recommendation for what the user should do. If anything, the link you suggested should go in the opposite direction, from best practices to technical details. The Project organization page would be better served by having a section about where to put asset sources and the link to the technical details of asset importing and .gdignore could go there.

/Key Point

I'd make more concrete suggestions, but I've always organized my Godot projects differently than what that document suggests, so I'm not really the right person to suggest where such a folder should go in that structure. I'm actually just now moving away from the "store asset sources in an external folder" mindset, which is why I was looking for this information in the first place.

That said, I suppose I could draft something, if submitting it is easy enough.

Thank You

Thank you, btw, @AThousandShips, for adding the correct labels. I've not contributed many (any?) comments to the Godot community before, so I didn't know if I should/could.

BlueG avatar Mar 26 '26 03:03 BlueG

The project organization page does say where to put resources though? It doesn't just say what Godot does, it suggests to place assets locally instead of in a separate folder structure:

Considering that, the most common approach is to group assets as close to scenes as possible; when a project grows, it makes it more maintainable.

But as this is a matter of preference it leaves it simple and brief

I'd suggest opening a separate suggestion for that though, but for this I'd say we can add a link to the asset pipeline section to the ignoring section

AThousandShips avatar Mar 26 '26 08:03 AThousandShips