melonJS
    Preparing search index...

    Function getBundle

    • The asset list of a declared bundle, or undefined when there is none: the way to test whether an id is declared, since the other bundle calls throw on an unknown one.

      Parameters

      • id: string

        the bundle id

      Returns Asset[] | undefined

      a copy of its asset descriptors, or undefined when no bundle is declared under that id

      if (loader.getBundle("level3") === undefined) {
      loader.setBundle("level3", level3Assets);
      }