Class SceneSectionStreamingSystem
System that controls streaming scene sections.
Inherited Members
SystemBase.GetComponent<T>(Entity)
SystemBase.SetComponent<T>(Entity, T)
SystemBase.HasComponent<T>(Entity)
SystemBase.HasBuffer<T>(Entity)
ComponentSystemBase.GetSharedComponentTypeHandle<T>()
ComponentSystemBase.RequireAnyForUpdate(NativeArray<EntityQuery>)
ComponentSystemBase.RequireForUpdate<T>()
ComponentSystemBase.RequireSingletonForUpdate<T>()
ComponentSystemBase.HasSingleton<T>()
ComponentSystemBase.GetSingleton<T>()
ComponentSystemBase.GetSingletonRW<T>()
ComponentSystemBase.TryGetSingleton<T>(out T)
ComponentSystemBase.TryGetSingletonBuffer<T>(out DynamicBuffer<T>)
ComponentSystemBase.SetSingleton<T>(T)
ComponentSystemBase.GetSingletonEntity<T>()
ComponentSystemBase.TryGetSingletonEntity<T>(out Entity)
ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
ComponentSystemBase.GetEntityQuery(in EntityQueryBuilder)
Namespace: Unity.Scenes
Assembly: Unity.Scenes.dll
Syntax
[RequireMatchingQueriesForUpdate]
[WorldSystemFilter(WorldSystemFilterFlags.Default|WorldSystemFilterFlags.Editor|WorldSystemFilterFlags.Streaming, WorldSystemFilterFlags.Default)]
[UpdateInGroup(typeof(SceneSystemGroup))]
[UpdateAfter(typeof(ResolveSceneReferenceSystem))]
[BurstCompile]
public class SceneSectionStreamingSystem : SystemBase
Properties
| Name | Description |
|---|---|
| ConcurrentSectionStreamCount | The maximum amount of sections that will be streamed in concurrently. This defaults to 4. |
| MaximumSectionsUnloadedPerUpdate | The maximum number of scene sections that will be unloaded per update tick. A value equal to or below zero indicates that the number of sections to unload per update is unlimited. This defaults to a negative value. |
| MaximumWorldsMovedPerUpdate | The maximum amount of streaming worlds that will be moved into the main world per update. This defaults to 1. |
Methods
| Name | Description |
|---|---|
| OnCreate() | Called when this system is created. |
| OnCreateForCompiler() | |
| OnDestroy() | Called when this system is destroyed. |
| OnUpdate() | Called when this system is updated. |