New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic accessor #29
Comments
Do you have some code snippets? |
Class snippets
An instance of Workspace is added to the global table.
Script executed with
I should be able to access it with
|
Hi, I know what is going on. Can you see, if the commit helps you? |
That works great! Thanks, that's really helpful. |
Becareful, I only checked GetMember. |
The branche "LuaTable" has the correct solution for this problem. If you want to check it out. But becareful, it was a big rewrite. And I am not finished, yet. |
This commit 91181ee should solve your issue finally. Can you give me feedback? |
In my library, I have a class with a dictionary, and I want scripts to be able to directly access them, e.g myobject.ChildObject.DeeperChildObject.
I made the base class inherit from DynamicObject, and overrode "TryGetMember", but the method does not get invoked when accessing an object in the LuaGlobalTable. I was going to try inherit from LuaTable, but this causes issues with protobuf-net/serialization.
How could I achieve this with NeoLua?
The text was updated successfully, but these errors were encountered: