RequestSceneLoaded
A component that requests the load of a sub scene.
Read time 1 minuteLast updated a day ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
- Implements: IComponentData, IQueryTypeParameter
public struct RequestSceneLoaded : IComponentData, IQueryTypeParameter
Remarks
Add this to a scene meta entity to request the scene be loaded; remove it to request unload. The streaming system propagates RequestSceneLoaded from the scene meta entity to its section meta entities when SceneLoadFlags.DisableAutoLoad is not set, so per-section load requests typically inherit the scene-level fields automatically.
Fields
Value | Description |
|---|---|
| ImportEntity | Optional main-world entity to copy into the per-section streaming world before ProcessAfterLoadGroup runs. |
| LoadFlags | Contains flags that control the load process for sub scenes. |