mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Merge branch 'master' into 3.2
This commit is contained in:
@@ -277,11 +277,11 @@ instead of ``--export``. Their parameters and usage are the same.
|
||||
Running a script
|
||||
----------------
|
||||
|
||||
It is possible to run a simple .gd script from the command line. This
|
||||
feature is especially useful in large projects, for batch
|
||||
It is possible to run a simple ``.gd`` script from the command line.
|
||||
This feature is especially useful in large projects, e.g. for batch
|
||||
conversion of assets or custom import/export.
|
||||
|
||||
The script must inherit from SceneTree or MainLoop.
|
||||
The script must inherit from ``SceneTree`` or ``MainLoop``.
|
||||
|
||||
Here is a simple example of how it works:
|
||||
|
||||
@@ -301,5 +301,5 @@ And how to run it:
|
||||
# Prints "Hello!" to standard output.
|
||||
godot -s sayhello.gd
|
||||
|
||||
If no project.godot exists at the path, current path is assumed to be the
|
||||
current working directory (unless ``-path`` is specified).
|
||||
If no ``project.godot`` exists at the path, current path is assumed to be the
|
||||
current working directory (unless ``--path`` is specified).
|
||||
|
||||
Reference in New Issue
Block a user