bevy_mod_scripting 0.24.0

Multi language scripting in Bevy
Documentation
1
2
3
4
5
6
7
8
local bms = import_namespace("bms")
local world = bms.world
local type = world.get_type_by_name("test_utils::test_data::SimpleStruct")
local constructed = bms.construct(type, {
    foo = 123
})

assert(constructed.foo == 123, "Value was constructed incorrectly, expected constructed.foo to be 123 but got " .. constructed.foo)