StaticChunkContentManager
A class in Root.Township, Alta.Chunks.
Loads and unloads a chunk's static prefab pointers. A headless server loads the collider only pointers; clients load the normal ones.
Constructors
Fields
| Member | What it is |
|---|
static bool IsLoadingPointers | Static switch; when false, pointers are not loaded at all. Defaults to true. |
static bool IsLoadingSequentially | Static switch; when true, pointers load one at a time instead of all together. Defaults to false. |
static int PointersToLoadPerFrame | Static: how many pointer loads start before yielding a frame. Defaults to 10. |
4 private and internal fields
| Member | What it is |
|---|
private bool isLogging | Private: set from the constructor. Not read in this build. |
private static Logger logger | Private: logs pointer load errors. |
private int pointerCount | Private: number of pointers. |
private List<string> pointers | Private: the pointer names for this chunk, collider only on headless. |
Methods
| Member | What it is |
|---|
protected override async Task LoadInternal() | Starts every pointer load, yielding a frame every PointersToLoadPerFrame, then waits for them all. Stops early if the chunk is unloading. |
protected override async Task UnloadInternal() | Releases this chunk's use of each pointer. |
1 private and internal method
| Member | What it is |
|---|
private async Task LoadPointerAsync(string pointer) | Private: uses one pointer for this chunk and waits for it to load. Errors are logged and the pointer skipped. |
Used in
Members of other types that take, return or hold a StaticChunkContentManager: