In this simple example, we're going to be instantiating game objects through Lua instead of Unity to demonstrate how to start creating a way to allow users to mod the game. Unity will run the Lua script and populate the level!
Source code for the project is in the link below!
https://github.com/s4lt3d/LuaScriptingTutorial.git
Timestamps:
0:00 Introduction
0:20 Installing Moon Sharp
0:50 Level Setup
3:28 Agent Navigation Script
4:29 Game Manager Script
4:56 Lua Script Runner
5:50 Initialize Level Script
7:17 Level Pieces Script
8:00 Lua Script
8:45 Agent Navigation Update
9:05 Probuilder
9:52 Rebaking NavMesh Script
10:18 Final Results