Function reload

  • reload the current level

    Parameters

    • Optionaloptions: {
          container: any;
          flatten: undefined | boolean;
          onLoaded: undefined | Function;
      }

      additional optional parameters

      • container: any

        container in which to load the specified level

      • flatten: undefined | boolean

        if true, flatten all objects into the given container

      • onLoaded: undefined | Function

        callback for when the level is fully loaded

    Returns object

    the current level

    reload

    level