Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6201744

Browse filesBrowse files
authored
Update 0.12.0.md
1 parent 04e9a32 commit 6201744
Copy full SHA for 6201744

File tree

Expand file treeCollapse file tree

1 file changed

+24
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+24
-2
lines changed

‎release-notes/0.12.0.md

Copy file name to clipboardExpand all lines: release-notes/0.12.0.md
+24-2Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
app.add_plugins(BMSPlugin);
1111
```
1212
Since this is a plugin group, you can also override any individual plugins that make up `BMS` by using `.set` i.e.:
13-
```
13+
```rust
1414
app.add_plugins(BMSPlugin.set(CoreScriptGlobalsPlugin::default()));
15-
```
15+
```
16+
17+
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.
1621

1722
### Callback responses
1823
It is now possible to request that a `ScriptCallbackResponseEvent` event is emitted on custom callbacks.
@@ -23,8 +28,25 @@ ScriptCallbackEvent::new_for_all(YourCallbackLabel, vec![my_arg])
2328
.with_response();
2429
```
2530

31+
### Optimisations
32+
- `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+
2636
### Fixes
2737
- 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 will now error, the error will point the user towards resolution helpfuly.
2841

2942
## Changelog
3043
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

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.