Closed ImKK666 closed 2 years ago
Instead of binding all the methods / properties in the new_usertype
call bind them individually using this syntax:
auto GameObjectUsertype = GameObjectLua.new_usertype<GameObject>("GameObject");
GameObjectUsertype["a1"] = &GameObject::a1;
GameObjectUsertype["a2"] = &GameObject::a2;
// etc
VS2022 X86
I have 100+ of binding functions
error:C1202 ..How to fix this bug?