文档

Unity Engine

Unity Engine

RequestSceneLoaded

A component that requests the load of a sub scene.
阅读时间1 分钟最后更新于 19 天前

Definition

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

ImportEntityOptional main-world entity to copy into the per-section streaming world before ProcessAfterLoadGroup runs.
LoadFlagsContains flags that control the load process for sub scenes.