Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcs090218/unitylua
Use Lua scripting language in Unity to accomplish hot update/fix functionality
https://github.com/jcs090218/unitylua
hot-fix hot-loader hot-update lua scripting slua tolua u3d ulua unity
Last synced: 2 months ago
JSON representation
Use Lua scripting language in Unity to accomplish hot update/fix functionality
- Host: GitHub
- URL: https://github.com/jcs090218/unitylua
- Owner: jcs090218
- License: mit
- Created: 2020-03-24T08:00:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T10:07:05.000Z (5 months ago)
- Last Synced: 2024-10-04T13:18:16.932Z (3 months ago)
- Topics: hot-fix, hot-loader, hot-update, lua, scripting, slua, tolua, u3d, ulua, unity
- Language: C#
- Homepage:
- Size: 5.12 MB
- Stars: 21
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Unity Engine](https://img.shields.io/badge/unity-6000.0.11f1-black.svg?style=flat&logo=unity)](https://unity3d.com/get-unity/download/archive)
[![Release](https://img.shields.io/github/release/jcs090218/UnityLua.svg?logo=github)](https://github.com/jcs090218/UnityLua/releases/latest)# Unity Lua
> Use Lua scripting language in Unity to accomplish hot update/fix functionality.[![Build Status](https://travis-ci.com/jcs090218/UnityLua.svg?branch=master)](https://travis-ci.com/jcs090218/UnityLua)
Project built on top of the [tolua](https://github.com/topameng/tolua) by [topameng](https://github.com/topameng).
This is the minimal project that shows you how to use `tolua` in your
own project.## Why use ToLua for your game?
When you came of hot-update, you would need a scripting language that can be
compile or use after the binary is built.### Pros
* Hot update/fix - you are able to change game logic without compile from
C# to binary.
* Lua is easy to learn.### Cons
* No auto-completion and debugging tool. (Maybe in the future?)
* You would have to do extra comilation every time you want to port a function
from C# to Lua programming interface.
* Unstable, easy to break.
* Slower than C# in general.## About ToLua
Here is a quick start that teaches you to use `tolua` in under a minute.
* `Assets/ToLua/Editor/Custom/CustomSettings.cs`
* `Assets/ToLua/Source/LuaConst.cs`These files are the only files that you need to be aware of to customize `tolua`.
Basically all the export and path settings are listed in these files.Done!!!
## Examples
There are few files that you would need to see before you know how to use
`tolua`'s functionality.All C# & Lua scripts under `/Assets/_Project/Scripts` folder.
Done!!!