GE Lua Documentation

Press F to search!

removePrefab

Definition


-- @/lua/ge/ge_utils.lua:804

function removePrefab(objName)
    local obj = scenetree[objName]
    if obj then
      log('D', logTag, 'unloading prefab '..objName)
      obj:unload()
      obj:delete()
    end
end

Callers

@/lua/ge/extensions/scenario/scenarios.lua
  else
    removePrefab(objName)
  end