Expand description
Provides scene definition, instantiation and serialization/deserialization.
Scenes are collections of entities and their associated components that can be instantiated or removed from a world to allow composition. Scenes can be serialized/deserialized, for example to save part of the world state to a file.
Re-exports§
pub use bevy_asset::ron;
Modules§
- The scene prelude.
serdeserialization 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
DynamicScenebuilder, used to build a scene from aWorldby extracting some entities and resources. - Dynamic
Scene Bundle Deprecated A component bundle for aDynamicSceneroot. - Adding this component will spawn the scene as a child of that entity. Once it’s spawned, the entity will have a
SceneInstancecomponent. - Unique id identifying a scene instance.
- Information about a scene instance.
- A composition of
Worldobjects. - Scene
Bundle Deprecated A component bundle for aSceneroot. InstanceIdof a spawned scene. It can be used with theSceneSpawnerto interact with the spawned scene.- Triggered on a scene’s parent entity when
crate::SceneInstancebecomes ready to use. - Asset loader for a Bevy dynamic scene (
.scn/.scn.ron). - Plugin that provides scene functionality to an
App. - Adding this component will spawn the scene as a child of that entity. Once it’s spawned, the entity will have a
SceneInstancecomponent. - 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 the
SceneRootandDynamicSceneRootcomponents. - System that handles scheduled scene instance spawning and despawning through a
SceneSpawner. - Serialize a given Rust data structure into rust object notation (ron).