bevy_mod_scripting 0.19.0

Multi language scripting in Bevy
Documentation
1
2
3
4
5
6
7
8
9
10
11
let fake_entity = _entity_from_index.call(0);
let fake_entity_valid = _make_invalid_entity.call();

assert_throws(||{
    world.insert_children.call(fake_entity_valid, 0, [fake_entity_valid]);
}, "Missing or invalid entity");

let entity = world.spawn_.call();
assert_throws(||{
    world.insert_children.call(entity, 0, [fake_entity]);
}, "Are you trying to use an entity in a callback in which it's unavailable?");