Debug Draw 3D (and 2D) 1.4.5
Draw 3D debug graphics and 2D overlays with this add-on.
Loading...
Searching...
No Matches
Build

As well as for the engine itself, you will need to configure the environment. And also you may need to apply several patches:

# To apply all patches automatically, you can call a single command:
scons apply_patches
# #Or apply each patch individually following the instructions below:
cd godot-cpp
# Optional
# #Build only the necessary classes
git apply --ignore-space-change --ignore-whitespace ../patches/godot_cpp_exclude_unused_classes.patch
# Optional
# #Faster builds and larger binaries
git apply --ignore-space-change --ignore-whitespace ../patches/unity_build.patch
# #Add build support With or Without thread support in the browser
git apply --ignore-space-change --ignore-whitespace ../patches/web_threads.patch

Then you can just run scons as usual:

# build for the current system.
# target=editor is used for both the editor and the debug template.
scons target=editor dev_build=yes debug_symbols=yes
# #Android builds
# ANDROID_NDK_ROOT is required in your environment variables.
# Or ANDROID_HOME with 'ndk/23.2.8568313' installed.
scons platform=android target=template_release arch=arm64v8
# If you have a different version of NDK installed and both ANDROID_HOME
# and ANDROID_NDK_ROOT have been added to the environment variables,
# then you will have to explicitly specify ANDROID_HOME=""
scons platform=android target=template_release arch=arm64v8 ANDROID_HOME=""
# #Web build
# GDExtension for Web currently works best with Emscripten '3.1.63'.
# Add threads=[yes|no] depending on the version of Godot and the export flags.
scons platform=web target=template_debug

JavaScript/Web build

If you have problems running the Web version of your project, you can try using the scripts and tips from this page.

If you too want to add an Interactive Demo to your GitHub repository, then you can see how Nick Maltbie (nicholas-maltbie) added this feature to this repository in PR #24!

In short, you need to activate Extension Support when exporting and add the gzuidhof/coi-serviceworker to the <head> and to the export folder. Then you will need to somehow publish a demo on the GitHub pages, as for example done in #24.

export_web_for_github