Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

ソースの取得

Godotのソースコードをダウンロードする

SConsビルドシステムに入り、Godotをコンパイルする前に、Godotソースコードを実際にダウンロードする必要があります。

ソースコードはGitHubで入手できます。Webサイトから手動でダウンロードできますが、一般的には git バージョン管理システムを使用してダウンロードします。

If you are compiling in order to make contributions or pull requests, you should follow the instructions from the Pull Request workflow.

まだgitについてよく知らない場合は、さまざまなWebサイトで多数のチュートリアルを利用できます。

一般に、 git やさまざまなGUIクライアントの1つをインストールする必要があります。

その後、Godotソースコード(不安定な master ブランチ)の最新の開発バージョンを入手するために、 git clone を使うことができます。

git コマンドラインクライアントを使用している場合は、ターミナルに次のコマンドラインクライアントを入力します:

git clone https://github.com/godotengine/godot.git
# You can add the --depth 1 argument to omit the commit history (shallow clone).
# A shallow clone is faster, but not all Git operations (like blame) will work.

安定版リリースの場合は、リリースページにアクセスして、目的のリリースのリンクをクリックします。次に、ページのダウンロードリンクからソースをダウンロードして抽出できます。

With git, you can also clone a stable release by specifying its branch or tag after the --branch (or just -b) argument:

# Clone the continuously maintained stable branch (`4.3` as of writing).
git clone https://github.com/godotengine/godot.git -b 4.3

# Clone the `4.3-stable` tag. This is a fixed revision that will never change.
git clone https://github.com/godotengine/godot.git -b 4.3-stable

# After cloning, optionally go to a specific commit.
# This can be used to access the source code at a specific point in time,
# e.g. for development snapshots, betas and release candidates.
cd godot
git checkout f4af8201bac157b9d47e336203d3e8a8ef729de2

The maintenance branches are used to release further patches on each minor version.

You can get the source code for each release and pre-release in .tar.xz format from godotengine/godot-builds on GitHub. This lacks version control information but has a slightly smaller download size.

Godot のソース コードをダウンロードした後、Godotのコンパイルを続行できます