Working on no signal offline today.
I'm trying to figure out how to export just the
demo files, which I have tried to do before. You
would normally think that selecting the
Export selected scenes (and dependencies)
option would work, but it does not because Godot
apparently doesn't have a complete dependency
graph.
To fix this, I had to select the
Export selected resources (and dependencies)
option instead and make the following
adjustments:
- Add localization files referenced by the
Localization > Translationssetting. - Add
.gdshaderincfiles that another shader would#include. - Add resources that another script would
preloadorload, even if that variable has an@exportannotation or isconst. - Add static classes that are referenced by other scripts (or convert them into autoloaded singletons).
- Add custom class_names referenced by other
scripts For example, if a script has a variable with
the type
Foobaror a static function is called on the classFoobar, then the corresponding scriptfoobar.gdwould need to be included. Related: godotengine/godot#51717 - Add images embedded in
RichTextLabelbbcode.
In general, it appears that I will have to do a
major refactor to get rid of the use of
const preload, which I use very often
throughout the codebase.
TODO:
For later: