Regular API function

simUnloadModule / sim.unloadModule

Description 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 simSendModuleMessage and sim.loadModule.
C synopsis simInt simUnloadModule(simInt pluginhandle)
C parameters
pluginhandle: handle of the plugin
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 number result=sim.unloadModule(number pluginHandle)
Lua parameters
Similar to C-function
Lua return values
Similar to C-function

All regular API functions on one page