You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- improve errors when entity is unavailable ([#410](https://github.com/makspll/bevy_mod_scripting/pull/410))
8
+
-[**breaking**] Add `BMSPlugin` group, feature flag for bindings per bevy crate & add script global filter options ([#408](https://github.com/makspll/bevy_mod_scripting/pull/408))
9
+
- The CoreScriptGlobalsPlugin now also stores options for filtering registered globals, which can be changed.
10
+
- add option to emit response event on each callback & `RunScriptCallback` command for "once-off" callbacks ([#403](https://github.com/makspll/bevy_mod_scripting/pull/403))
11
+
### Fixed
12
+
13
+
-`lua54` feature being forced ([#413](https://github.com/makspll/bevy_mod_scripting/pull/413))
14
+
-`GetTypeDependency` derive macro using the wrong path for `bms_core` ([#409](https://github.com/makspll/bevy_mod_scripting/pull/409))
- reduces size of `ScriptValue` to 64 bytes, moves some dynamic function methods into function info ([#404](https://github.com/makspll/bevy_mod_scripting/pull/404))
- improve errors when entity is unavailable ([#410](https://github.com/makspll/bevy_mod_scripting/pull/410))
15
+
-[**breaking**] Add `BMSPlugin` group, feature flag for bindings per bevy crate & add script global filter options ([#408](https://github.com/makspll/bevy_mod_scripting/pull/408))
16
+
- add option to emit response event on each callback & `RunScriptCallback` command for "once-off" callbacks ([#403](https://github.com/makspll/bevy_mod_scripting/pull/403))
17
+
18
+
### Fixed
19
+
20
+
-`lua54` feature being forced ([#413](https://github.com/makspll/bevy_mod_scripting/pull/413))
- reduces size of `ScriptValue` to 64 bytes, moves some dynamic function methods into function info ([#404](https://github.com/makspll/bevy_mod_scripting/pull/404))
-[**breaking**] Add `BMSPlugin` group, feature flag for bindings per bevy crate & add script global filter options ([#408](https://github.com/makspll/bevy_mod_scripting/pull/408))
The `bevy_bindings` feature flag has been replaced by fine-grained feature flags for each bevy module which contains the generated bindings corresponding to the upstream crate.
18
+
The script functions plugin now automatically registers the bindings according to these feature flags. This should help cut down on compilation times, and control bindings.
19
+
20
+
The `CoreScriptGlobalsPlugin` now also stores options for filtering registered globals, which can be changed.
21
+
22
+
### Callback responses
23
+
It is now possible to request that a `ScriptCallbackResponseEvent` event is emitted on custom callbacks.
24
+
25
+
You can do this at the time of creation of `ScriptCallbackEvent` triggers like so:
-`ScriptValue` is reduced in size to 64 bytes, improving performance all-around
33
+
-`ReflectReference` was refactored internally, to make slightly more sense
34
+
- Script loading performance benchmarks have been added
35
+
36
+
### Fixes
37
+
- since `0.11.0` the crate has silently been pulling in `mlua` with the `lua54` feature, which meant you could not select another lua version. This has been fixed
38
+
- the bug, causing the `GetTypeDependencies` derive macro to use the wrong path for `bms_core` had been fixed (thanks @shanecelis)
39
+
### Other
40
+
- Calls using the script's entity when it's not available will now error, the error will point the user towards resolution helpfuly.
41
+
42
+
## Changelog
43
+
See a detailed changelog [here](https://github.com/makspll/bevy_mod_scripting/blob/main/CHANGELOG.md)
44
+
45
+
## Migration Guide
46
+
Stop registering individual plugins like `ScriptFunctionsPlugin` and `LuaScriptingPlugin` and instead register `BMSPlugin`.
47
+
48
+
If you did not want to include bevy bindings, make sure to disable the feature flags by using BMS without default features, similarly for the core functions.
49
+
50
+
Any customisations to sub-plugins can be performed as usual through the plugin group's `.set(PluginName::default()...)`.
51
+
52
+
The feature flag bevy_bindings is replaced by the fine grained feature flags for each bevy module, replace usages of this flag with all the modules you expect to use in scripts.
0 commit comments