Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Godot: what are .import files, and should you commit them to git?

In Godot, when you import images and other assets into the editor, there's an additional <filename>.import file created.

What are those .import file used for? Should you commit them to your git repo?

like image 782
PapaFreud Avatar asked Jan 18 '19 07:01

PapaFreud


People also ask

Why does Godot keep re-importing my files?

If an .import file is missing Godot will re-import with the default settings (which is not good if you changed them) and recreate the *.import file. It is also worth mentioning that the *.import files reference files in the .import folder ( .godot/imported in Godot 4.0). But there is no need to include that folder.

How do I import ldtk files into Godot?

Copy the addons folder to your godot project folder. Enable LDtk Importer under Project Settings/Plugins. Add a .ldtk map file and any spritesheets you're using to your project folder. Select your .ldtk file and open the Import menu to toggle importing collisions, custom entities, metadata, and YSort.

What is an import file?

What is an IMPORT file? An IMPORT file is a settings file created by Godot Engine, a free and open source game engine used to create 2D and 3D games. It contains information in plain text that describes how files imported into a .GODOT project should be displayed in the project, which may include compression quality for images and if a video loops.


Video Answer


1 Answers

I don't know Godot, but the doc say :

Importing will add an extra .import file, containing the import configuration. Make sure to commit these to your version control system!

See the doc here : https://docs.godotengine.org/en/3.0/getting_started/workflow/assets/import_process.html#files-generated

How find the doc? : Search "godot import files" on Google

like image 183
Lortet Avatar answered Sep 21 '22 05:09

Lortet