Sign in to follow this  

Unity LuaPlus classes in C++

This topic is 2149 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have been working on integrating LuaPlus into my engine, and I ran into a small problem. My engine uses a componet based entity system, and I want scripts to be able to define classes similar to the way you do in Unity. I plan on having scripts create metatables and creating a table in C++ that uses the metatable from the script to call script functions sored in the script metatable. How can I set something like that up? Should I hve a function that gets called in the script to register the metatable?

Share this post

Link to post
Share on other sites
Sign in to follow this