Skip to content

Commit 6afda04

Browse files
committed
Update some doc comment wording and release note wording.
1 parent 77091f1 commit 6afda04

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

crates/bevy_asset/src/meta.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ pub enum AssetAction<LoaderSettings, ProcessSettings> {
6767
processor: String,
6868
settings: ProcessSettings,
6969
},
70-
/// This asset should fail to load, since the original unprocessed asset was decomposed into
71-
/// multiple files. This provides a better error message rather than just saying the file is
72-
/// missing.
70+
/// This asset has been decomposed into multiple files. The original asset path can no longer be
71+
/// loaded.
7372
Decomposed,
7473
/// Do nothing with the asset
7574
Ignore,

crates/bevy_asset/src/processor/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl<'a> WriterContext<'a> {
395395

396396
/// Start writing a single output file, which can be loaded with the `load_settings`.
397397
///
398-
/// Returns an error if you have previously started writing.
398+
/// Returns an error if you have previously called [`Self::write_multiple`].
399399
pub async fn write_single(self) -> Result<SingleWriter<'a>, ProcessError> {
400400
let started_writes = self
401401
.init_context

release-content/release-notes/one_to_many_processing.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ impl Process for LineSplitterProcess {
4848
Then if you have an asset like `shakespeare.txt`, you can load these separate files as
4949
`shakespeare.txt/Line0.line`, `shakespeare.txt/Line1.line`, etc. These separate files can have
5050
different file extensions, be loaded as completely separate asset types, or be entirely produced
51-
from scratch within the asset processor!
51+
from scratch within the asset processor! These files are treated as completely distinct assets, so
52+
loading them looks like a regular asset load (e.g.,
53+
`asset_server.load("shakespeare.txt/Line1.line")`).
5254

5355
We plan to use this to break apart large glTF files into smaller, easier-to-load pieces -
54-
particularly for producing meshlets.
56+
particularly for producing virtual geometry meshes.

0 commit comments

Comments
 (0)