Packaging plugins¶
Engine and editor plugins are C++ code. Distributing one means shipping its source and CMake entries, or a prebuilt static library plus headers.
Engine plugin¶
- Add the plugin's source to
Engine/CMakeLists.txt(or usecreate plugin). - Include the header in the game's
main.cppand callInit(). - Document registration order and dependencies.
Editor plugin¶
- Add the source to
Editor/CMakeLists.txt. - Register the editor in
InspectorPanel. - Keep the component's reflection in sync so scenes serialize.
Lua plugin¶
Ship the .lua files in the project's scripts/ folder. Paths are project-relative.