Game Logic: LibNew

LibNew(name, type, data)
  • Uses existing datablock data and loads in as a new library.

Return Type:

  • string list  [ library ]

name:

  • Type: string
  • A unique library name used for removal later.
type:
  • Type: string
  • The datablock type (currently only “Mesh” is supported)
data:
  • Type:  list [ string ]
  • A list of names of the datablocks to load.
Sample Code

################## get a list of the loaded Libraries

# import bge
import bge

??????????????