Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 2.18 KB

README.md

File metadata and controls

85 lines (61 loc) · 2.18 KB

LuaInteractive

Donate

Lua Interactive is just perfect Unity editor plugin to excute lua on play mode.

Feature list

  • Free
  • Excute lua on play mode
  • No runtime resources required
  • No scripting required

Install

Using npm (Ease upgrade in Package Manager UI)Recommend

Find the manifest.json file in the Packages folder of your project and edit it to look like this:

{
  "scopedRegistries": [
    {
      "name": "My Registry",
      "url": "https://registry.npmjs.org",
      "scopes": [
        "com.litefeel"
      ]
    }
  ],
  "dependencies": {
    "com.litefeel.luainteractive": "1.2.1",
    ...
  }
}

Using git

Find the manifest.json file in the Packages folder of your project and edit it to look like this:

{
  "dependencies": {
    "com.litefeel.luainteractive": "https://github.com/litefeel/Unity-LuaInteractive.git#1.2.1",
    ...
  }
}

Using .zip file (for Unity 5.0+)

  1. Download Source code from Releases
  2. Extract the package into your Unity project

How to use?

Using on Unity Editor

  1. Select Edit > Project Settings… > Lua Interactive from the menu
  2. Input a lua file path
  3. Press Create defualt lua script
  4. Play game
  5. Press Ctrl + Shift + R
  6. Excute the lua script

Using On Android

  1. setting like Using on Unity Editor
  2. Add custom macro LUA_RUNNER_RUNTIME
  3. connect device with adb
  4. Excute the python script LuaInteractive/Editor/Script~/runOnAndroid.py

Support