Skip to content

Commit bdfac79

Browse files
committed
add docs
1 parent 67d7506 commit bdfac79

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/src/ScriptPipeline/pipeline.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,8 @@ The script loading/unloading order will look as follows:
8080
- the order in which components are attached/detached, will determing what order scripts will be processed
8181
- scripts are processed one-by-one, i.e. each machine is ticked to completion before the next one is started
8282
- meaning for example if two scripts are loaded, their `on_script_loaded` hooks will not run at the same "lockstep".
83-
- loading/unloading might happen over multiple frames, depending on the pipeline's settings.
83+
- loading/unloading might happen over multiple frames, depending on the pipeline's settings.
84+
85+
## Waiting for scripts to load
86+
87+
In order to check on the pipeline and figure out when everything is ready, you can use the `ScriptPipelineState<P>` system parameter in a system as shown in the `script_loading` [example](https://github.com/makspll/bevy_mod_scripting/blob/main/examples/script_loading.rs).

0 commit comments

Comments
 (0)