Regular API function


Description Closes current scene, and switches to another open scene. If there is no other open scene, a new scene is then created. Can only be called from an add-on, or from the sanbox script, when called from Lua. See also sim.loadScene and sim.saveScene.
C synopsis simInt simCloseScene()
C parameters
C return value
-1 if operation was not successful, otherwise the current scene index.
Lua synopsis number result=sim.closeScene()
Lua parameters
Lua return values
same as C-function
Remote API equiv.
B0-based remote API: simxCloseScene
Legacy remote API: simxCloseScene

All regular API functions on one page