Table of Contents

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

owner Luau
state LuaState
reference int

Methods

Call(params object?[])

Calls the Lua function with the specified arguments and returns the results.

public object?[] Call(params object?[] arguments)

Parameters

arguments object[]

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.