File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
release-content/0.16/release-notes Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 1
1
<!-- Stop automatically generating meta files for assets while using asset processing. -->
2
2
<!-- https://github.com/bevyengine/bevy/pull/17216 -->
3
3
4
- <!-- TODO -->
4
+ In Bevy 0.12, we introduced "Assets V2". This was a complete rewrite of our asset system and
5
+ included all sorts of cool features. One of those was "asset preprocessing". This allows defining
6
+ a ` Process ` to apply to assets before they are loaded for use in the engine. This however
7
+ necessitated "meta files" for every asset in your project - meaning when you started using asset
8
+ preprocessing * at all* , your entire ` assets ` folder would be filled with these meta files
9
+ automatically (even for assets that don't need any preprocessing).
10
+
11
+ To alleviate this pain, enabling asset preprocessing no longer automatically writes meta files! This
12
+ makes it easier to enable asset preprocessing and adopt it gradually.
13
+
14
+ In addition, we've added ` AssetServer::write_default_loader_meta_file_for_path ` and
15
+ ` AssetProcessor::write_default_meta_file_for_path ` to allow users to explicitly generate the default
16
+ meta files for assets when necessary.
17
+
18
+ Consider enabling asset processing with:
19
+
20
+ ``` rust
21
+ app . add_plugins (DefaultPlugins . set (
22
+ AssetPlugin {
23
+ mode : AssetMode :: Processed ,
24
+ .. default ()
25
+ }
26
+ ));
27
+ ```
28
+
29
+ Enabling the ` bevy/asset_processor ` feature will then process files automatically for you. See
30
+ [ the asset processing example] ( https://github.com/bevyengine/bevy/blob/main/examples/asset/processing/asset_processing.rs )
31
+ for more details!
You can’t perform that action at this time.
0 commit comments