DEV Community

Ryo Kuroyanagi
Ryo Kuroyanagi

Posted on

8

Using xLua in Unity

This is my note of my testing of xLua. I'm using "Unity 2022.3.27" and URP.

Installation

From the release page, download the source code zip file. The latest build today is "Tag:v2.1.16_with_ohos".

Put all the files and the folders in "Assets" folder into your Unity project (some meta files, XLua, Plugin folder).

In "Examples" folder, there's "ExampleGenConfig.cs" and it causes an error.

Assets\XLua\Examples\ExampleGenConfig.cs(112,36): error CS0246: The type or namespace name 'MemberInfo' could not be found (are you missing a using directive or an assembly reference?)
Enter fullscreen mode Exit fullscreen mode

You can delete the file to use xLua.

Build

Windows

I just built an app for windows in the way we build.

Android

Switch to Android platform. Go to [XLua top menu] -> [Generate Code] to generate platform specific codes. Then, build an APK file.

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo πŸ“Šβœ¨

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

πŸ‘‹ Kindness is contagious

If this article made your day, feel free to drop a ❀️ or share your thoughts in the comments!

Understood