Skip to main content

Development Modes

Script-based Projects

  1. After placing LGameObject in the level, add the LScriptComponent to LGameObject

  2. Write the script, add the on_begin_play function to the script, write relevant logic

  3. Add on_end_play function in the script, write relevant logic

  4. Bind the LScriptComponent on the LGameObject to the script

You can also implement new types by inheriting types from C++ based on Lua scripts.

C++ Based Projects

  1. Add C++ DLL Project

  2. Select the type needs to be inherited (LGameInstance, LCharacter, LGameMode, etc.) and write relevant code in C++

  3. Configure the DLL for the project to load

  4. Compile and run

Comparison of Two Development Modes

Script-based projects can quickly build project prototype, while C++ based project has more in-depth customization features, better compile-time check and performance.