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/LuaScriptin...
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
Auf dieser Seite können Sie das Online-Video Lua Scripting in Unity mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Walter's Bits 05 May 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 10,752 Mal angesehen und es wurde von 218 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!