function start()
this.world:getModule("gui"):getSystem():enableCursor(true)
end
for i = 1, 7 do
for j = 1, 120 do
for k = 1, 7 do
Editor.createEntityEx {
position = { i * 3, j * 3, k * 3 },
model_instance = { source = "models/shapes/cube.fbx" },
rigid_actor = { dynamic = 1, box_geometry = { {} } }
}
end
end
end
ext_prefab = Lumix.Resource:newEmpty("prefab")
local done = false
function update(time_delta)
if not done then
local e = this.world:instantiatePrefab({0, 3, 0}, ext_prefab)
LumixAPI.logInfo("root entity of the instantiated prefab : " .. tostring(e))
done = true
end
end