bevy_mod_scripting 0.19.0

Multi language scripting in Bevy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

let Resource = world.get_type_by_name.call("TestResource");
let resource = world.get_resource.call(Resource);

let functions = resource.functions.call();
assert(functions.len() > 0, "functions should not be empty");

let available_names = [];

for function_ref in functions {
    available_names.push(function_ref.name);
}

assert("display" in available_names, "functions should contain display, but got: " + available_names);