Class LuauFunction
- Namespace
- LuauInterop.Objects
- Assembly
- LuauInterop.dll
public sealed class LuauFunction : LuauBase, IDisposable
- Inheritance
-
LuauFunction
- Implements
- Inherited Members
Constructors
LuauFunction(Luau, LuaState, int)
public LuauFunction(Luau owner, LuaState state, int reference)
Parameters
Methods
Call(params object?[])
Calls the Lua function with the specified arguments and returns the results.
public object?[] Call(params object?[] arguments)
Parameters
argumentsobject[]The arguments to pass to the Lua function.
Returns
- object[]
An array of results returned by the Lua function.
Exceptions
- LuauException
Thrown if the Lua function call results in an error.
- ObjectDisposedException
Thrown if this function or its owner has been disposed.