Custom Lua with optional var
-
- Posts: 5
- Joined: Fri Jan 13, 2017 12:05 pm
Custom Lua with optional var
i've registered my own lua call but like some of yours i want it to have optional parameters. i've tried just writing my method with optional parameters but if i don't use all the parameters the lua doesn't sync with my method. i would create multiple overloads but i read we shouldn't have multiple registered functions with the same name? any help would be appreciated. thanks in advance.
Re: Custom Lua with optional var
Sorry, C# functions registered with Lua don't support overloads or optional parameters. You'll have to register them as different function names.
-
- Posts: 5
- Joined: Fri Jan 13, 2017 12:05 pm
Re: Custom Lua with optional var
good to know. thanks