StreamingSourceComponent
A point the world streams around (UE's WorldPartitionStreamingSourceComponent). Streaming used to follow the main camera alone, which is wrong the moment a world has more than one viewer: on a listen server the sectors around every remote player were non-resident on the host, so their physics, their interactables and the geometry they stood on simply were not there. Every entity carrying this component is a source, and a sector's distance is its distance to the NEAREST one — the camera included.
- Module
- Game
- Header
#include "Game/Components/StreamingSourceComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
FNetSession puts one on every player pawn it spawns, so co-op is correct without anyone authoring it; place it by hand on anything else that must keep the world around it loaded (a vehicle a player left running, a camera about to cut, an AI the designer wants simulated).
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
float | radiusScale | Scales the three streaming radii for this source alone. Below 1 a source keeps less around it than the camera does — the setting for a distant co-op player on a memory-bound machine, where the alternative is every player paying the camera's full footprint. Default 1.0f. |