bevy_mod_scripting 0.19.0

Multi language scripting in Bevy
Documentation
1
2
3
4
5
6
7
local entity = world.spawn()
local child = world.spawn()
world.push_children(entity, {child})
world.despawn(entity)

assert(world.has_entity(entity) == false, "Parent should be despawned")
assert(world.has_entity(child) == true, "Child should not be despawned")