@JeZxLee said:
What are these ".import" files?
.import
files contain the import settings for the file it is associated with. This is because Godot (and many other game engines) convert the resources in the project to a file format that makes them easier to read when the game is running. Because of this, there is a translation step, and the .import
file contains the settings that inform the process that converts the files with how to convert them, what format to use, etc.
If we explore the game resource folder and open and edit a resource outside of the Godot IDE
will the resource's ".import" file update too?
Yes, Godot should detect that the file has changed and will reimport it. If Godot doesn't reimport the file, then you can manually tell Godot to reimport the file by navigating to the resource, going to the import tab, and pressing the (Re)Import
button.
The .import
file itself may or may not change though, since it just contains the settings. For all intents and purposes though, the .import
file should update itself as needed and shouldn't need direct modification. If you need to change the import settings, you can select the resource in the Godot editor, and go to the import tab, which will show you the available settings for that resource type.
That said, if you go to the .import
folder in the root of your Godot project, you will find the file has changed. This is because the .import
folder contains the converted files.
(Disclaimer: My answers are based on my Godot experience, not the source code, so they may be slightly off. The gist is right though)