Game Logic: LibFree

LibFree(name)
  • Frees a library.
  • Removes all objects and meshes in the library from the active scenes.

name:

  • Name of the library to free.
  • Type: string
Sample Code

################## Free a Library
  

# import bge
import bge

# Free the Library you named Lib_1
bge.logic.LibFree("Lib_1")