Regular API function

simCloseScene (remote API equivalent: simxCloseScene)

Description Closes current scene, and switches to another open scene. If there is no other open scene, a new scene is then created. 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 -
Lua parameters
Lua return values

All regular API functions on one page