bevy_mod_scripting 0.19.0

Multi language scripting in Bevy
Documentation
1
2
3
4
5
6
let NewComponent = world.register_new_component.call("ScriptComponentA");
let entity = world.spawn_.call();

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