Regular API function

simUnloadModule / sim.unloadModule

Description Lua only. Unloads a CoppeliaSim plugin. This should usually be done just before ending the simulator. Alternatively, you can also unload a plugin that was dynamically loaded at any time. This can however lead to a crash if the plugin registered custom Lua functions via simRegisterCustomLuaFunction (deprecated) without specifying a function name as functionName@pluginName. See also sim.loadModule.
C/C++
synopsis
simInt simUnloadModule(simInt pluginhandle)
C/C++
parameters
pluginhandle: handle of the plugin
C/C++
return value
0 if plugin was not unloaded (e.g. because it was not loaded, or because it was loaded more than once). Different from 0 if the plugin was successfully unloaded
Lua
synopsis
int result=sim.unloadModule(int pluginHandle)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart