bevy_scriptum 0.11.0

Plugin for Bevy engine that allows you to write some of your game or application logic in a scripting language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// entity is a global variable that is set to the entity that is currently being processed,
// it is automatically available in all scripts

// get name of the entity using registered function
get_name(entity).then(|name| {
    print(name);
});

// Rhai also supports calling functions with the dot operator
entity.get_name().then(|name| {
    print(name);
})