bevy_mod_scripting 0.19.0

Multi language scripting in Bevy
Documentation
1
2
3
4
5
6
local NewComponent = world.register_new_component("ScriptComponentA")
local entity = world.spawn()

assert(world.has_component(entity, NewComponent) == false, "Entity should not have component")
world.add_default_component(entity, NewComponent)
assert(world.has_component(entity, NewComponent) == true, "Entity should have component")