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 “Ass…


This content originally appeared on DEV Community and was authored by Ryo Kuroyanagi

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 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?)

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.


This content originally appeared on DEV Community and was authored by Ryo Kuroyanagi


Print Share Comment Cite Upload Translate Updates
APA

Ryo Kuroyanagi | Sciencx (2024-08-04T14:51:30+00:00) Using xLua in Unity. Retrieved from https://www.scien.cx/2024/08/04/using-xlua-in-unity/

MLA
" » Using xLua in Unity." Ryo Kuroyanagi | Sciencx - Sunday August 4, 2024, https://www.scien.cx/2024/08/04/using-xlua-in-unity/
HARVARD
Ryo Kuroyanagi | Sciencx Sunday August 4, 2024 » Using xLua in Unity., viewed ,<https://www.scien.cx/2024/08/04/using-xlua-in-unity/>
VANCOUVER
Ryo Kuroyanagi | Sciencx - » Using xLua in Unity. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/04/using-xlua-in-unity/
CHICAGO
" » Using xLua in Unity." Ryo Kuroyanagi | Sciencx - Accessed . https://www.scien.cx/2024/08/04/using-xlua-in-unity/
IEEE
" » Using xLua in Unity." Ryo Kuroyanagi | Sciencx [Online]. Available: https://www.scien.cx/2024/08/04/using-xlua-in-unity/. [Accessed: ]
rf:citation
» Using xLua in Unity | Ryo Kuroyanagi | Sciencx | https://www.scien.cx/2024/08/04/using-xlua-in-unity/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.