PuzzlesLoader - Verge3D User Manual - Soft8Soft
Description: Learn how to use PuzzlesLoader in your interactive 3D apps made with Verge3D

# PuzzlesLoader

A class capable of loading the Puzzles editor and visual logic code.

## Constructor

### PuzzlesLoader()

The constructor takes no parameters.

## Methods

### # .loadEditorWithLogic(editorDir : String, logicURL : String, onLoad : Function, onError : Function)

Load the Puzzles editor and the logic file. The method needs to be provided with the path to the Puzzles Editor's source folder (specified by the `editorDir` parameter, usually it's the puzzles subfolder of the Verge3D installation folder) and with the path to the logic JS file (`logicURL` parameter). The `onLoad` callback can be used to load a scene after the editor and the logic file were loaded.

### # .loadLogic(logicURL : String, onLoad : Function, onError : Function)

Load the logic file. The `onLoad` callback can be used to load a scene after the logic file was loaded.

## Source

For more info on how to obtain the source code of this module see this page.