Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by darkhog · Feb 25, 2013 at 12:24 AM · integration

Integrating Lua scripting into Unity game

I'd like in my next project make modding API and Lua seems to be perfect language for the task. It is fast, flexible and easy to sandbox. But is it possible to integrate it into Unity game? Had it been done?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Bunny83 · Feb 27, 2013 at 12:41 PM

If you really searched for it you should have found this page. In the C# section the last one (UniLua) is a 100% managed implementation of lua optimised for Unity3d. I haven't tested it yet, but it's "mostly" complete. Some features are missing or not done yet. See for yourself.

The big advantage of 100% managed code is that you can run it even in webbuilds or mobile builds and don't require Unity pro (for plugin support). Wrappers only work for a certain platform.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image darkhog · Feb 27, 2013 at 10:51 PM 0
Share

This is nice project to keep an eye on, but I'd need to wait until os module become available.

avatar image
0

Answer by hoy_smallfry · Feb 25, 2013 at 01:27 AM

It's possible to integrate it to C, therefore its possible to integrate it to C#. I personally have never done it, but I know someone on a former team that has made an interop library for the three languages. So, I assume possible to integrate it into Unity once you have a C# DLL.

Edit

You can reate your own DLL, or use one that's already exists, such as LuaInterface. Then, I think its all a matter of how much you know about integrating Lua.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image darkhog · Feb 25, 2013 at 01:01 PM 0
Share

Yeah, but I couldn't find any documentation of this library. On it's GoogleCode page there's only download and changelog. No documentation.

avatar image darkhog · Feb 27, 2013 at 11:29 PM 0
Share

Thanks! Please convert it to answer so I can mark it as best answer, Roger!

avatar image
0

Answer by RogerCapiche · Feb 27, 2013 at 11:46 AM

If I recall correctly this was a pretty good tutorial for using LuaInterface in C#.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Problem when intergrate openfeint in unity3d 0 Answers

Is there a way to display integration test results in the editor GUI? 1 Answer

Integration of Unity and Eclipse 1 Answer

FB.Apprequest problem 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges