LUA Function - Object does not match Target Type
Posted: Tue Apr 25, 2023 3:33 pm
Hey Tony,
I was trying to register my custom Methods and followed your tutorial : Connecting C# Methods to LUA.
So I wrote similar code as shown below I registered 3 methods to test. The first two are calling LevelUp() and GainExp() from a Character ScriptableObject, and GainXp is calling a local method.
GainXp works without any issues.
When I try to call my two functions from my scriptable Object I run into Object does not match Target Type error. I have the methods registered to the LUA Function I know there's another thread that was similar to my question, but I wasn't able to fully draw a solution to my issue.
Thanks again as always for helping me debug.
Cheers
I was trying to register my custom Methods and followed your tutorial : Connecting C# Methods to LUA.
So I wrote similar code as shown below I registered 3 methods to test. The first two are calling LevelUp() and GainExp() from a Character ScriptableObject, and GainXp is calling a local method.
GainXp works without any issues.
When I try to call my two functions from my scriptable Object I run into Object does not match Target Type error. I have the methods registered to the LUA Function I know there's another thread that was similar to my question, but I wasn't able to fully draw a solution to my issue.
Thanks again as always for helping me debug.
Cheers