Module bevy_internal::scene
source · Expand description
Save/load collections of entities and components to/from file.
Modules
- Rusty Object Notation
serde
serialization and deserialization implementation for Bevy scenes.
Structs
- A reflection-powered serializable representation of an entity and its components.
- A collection of serializable resources and dynamic entities.
- A
DynamicScene
builder, used to build a scene from aWorld
by extracting some entities and resources. - A component bundle for a
DynamicScene
root. - Unique id identifying a scene instance.
- Information about a scene instance.
- To spawn a scene, you can use either:
- A component bundle for a
Scene
root. InstanceId
of a spawned scene. It can be used with theSceneSpawner
to interact with the spawned scene.- Emitted when
crate::SceneInstance
becomes ready to use. AssetLoader
for loading serialized Bevy scene files asDynamicScene
.- Plugin that provides scene functionality to an
App
. - Handles spawning and despawning scenes in the world, either synchronously or batched through the
scene_spawner_system
.
Enums
- A filter used to control which types can be added to a
DynamicScene
. - Possible errors that can be produced by
SceneLoader
- Errors that can occur when spawning a scene.
Functions
- System that will spawn scenes from
SceneBundle
. - System that handles scheduled scene instance spawning and despawning through a
SceneSpawner
. - Serialize a given Rust data structure into rust object notation (ron).