Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 24a5efe

Browse files
authored
Update README.md
A step was missing to initialize the git submodule for godot-cpp. It was uninitialized when I followed the github template instructions.
1 parent 843b225 commit 24a5efe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ This repository serves as a quickstart template for GDExtension development with
1212
To use this template, log in to github and click the green "Use this template" button at the top of the repository page.
1313
This will let you create a copy of this repository with a clean git history. Make sure you clone the correct branch as these are configured for development of their respective Godot development branches and differ from each other. Refer to the docs to see what changed between the versions.
1414

15-
For getting started after cloning your own copy to your local machine, you should
15+
For getting started after cloning your own copy to your local machine, you should:
16+
* initialize the godot-cpp git submodule via `git submodule update --init`
1617
* change the name of your library
1718
* change the name of the compiled library file inside the `SConstruct` file by modifying the `libname` string.
1819
* change the pathnames of the to be loaded library name inside the `demo/bin/example.gdextension` file. By replacing `libgdexample` to the name specified in your `SConstruct` file.
1920
* change the name of the `demo/bin/example.gdextension` file
2021
* change the `entry_symbol` string inside your `demo/bin/your-extension.gdextension` file to be configured for your GDExtension name. This should be the same as the `GDExtensionBool GDE_EXPORT` external C function. As the name suggests, this sets the entry function for your GDExtension to be loaded by the Godot editors C API.
21-
* register the classes you want Godot to interact with inside the `register_types.cpp` file in the initialization method (here `initialize_gdextension_types`) in the syntax `ClassDB::register_class<CLASS-NAME>();`.
22+
* register the classes you want Godot to interact with inside the `register_types.cpp` file in the initialization method (here `initialize_gdextension_types`) in the syntax `ClassDB::register_class<CLASS-NAME>();`.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /