0 votes

I know that there is this docs page https://docs.godotengine.org/en/latest/getting_started/editor/command_line_tutorial.html
But it doesn't tell how to change sprites.
Say there is a sprite frog.png . I want to overwrite it with another file named frog.png having a different image. I could just do it from OS commands, but I believe Godot should re import the image too.
How can I do it, especially the re import part.

asked Mar 17 in Engine by NikhilKadiyan (104 points)

1 Answer

+1 vote
Best answer

To make Godot reimport all assets from the command line, start the project with the following arguments:

# Specifying the path to the `project.godot` file will open the editor directly.
/path/to/godot.binary /path/to/project/project.godot --quit

--quit will exit Godot after one iteration, just after it's done reimporting assets.

answered Mar 17 by Calinou (6,336 points)
selected Mar 17 by NikhilKadiyan
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 How to use this Q&A? before posting your first questions.