StreamingSettings
A class in Root.Township, Alta.Caves.
Cave settings for chunk loading distances, the cave layer prefabs, and the A* graph used for cave pathfinding. Get it with CaveSettings<StreamingSettings>.Instance.
- Listed in World generation
- Inherits or implements
CaveSettings<StreamingSettings> - Derived types
StreamingSettings,StreamingSettings.Create - Nested types
Create,SpecialLayer - Documented in Caves
Constructors
| Member | What it is |
|---|---|
StreamingSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
22 private and internal fields
| Member | What it is |
|---|---|
private float caveConnectionCost | Cost of connections between cave layers. Nothing reads it in this build. |
private NetworkPrefab caveStreamerPrefab | Default network prefab spawned for each cave layer, and always used on a simple server. |
private float cellSize | Cave A* recast graph cell size. |
private float characterRadius | Cave A* recast graph agent radius. |
private float colliderRasterizeDetail | Cave A* recast graph collider detail. |
private float contourMaxError | Cave A* recast graph contour error. |
private float dynamicChunkLoadRadius | Normal client: default load radius for dynamic chunks, scaled by DynamicLoadDistanceMultiplier. |
private Vector3 loadBounds | Optimised client: box size around the player that loads chunks. |
private LayerMask mask | Layers the cave A* recast graph rasterizes. |
private float maxEdgeLength | Cave A* recast graph maximum edge length. |
private float maxSlope | Cave A* recast graph maximum walkable slope. |
private float minRegionSize | Cave A* recast graph minimum region size. |
private bool rasterizeColliders | Whether the cave A* graph uses colliders. On by default. |
private bool rasterizeMeshes | Whether the cave A* graph uses meshes. |
private bool rasterizeTerrain | Whether the cave A* graph uses terrain. |
private StreamingSettings.SpecialLayer[] specialLayers | Layers that spawn a different prefab instead of caveStreamerPrefab. |
private float staticChunkLoadRadius | Normal client: default load radius for static chunks, scaled by StaticLoadDistanceMultiplier. |
private int tileSize | Cave A* recast graph tile size. |
private Vector3 unloadBounds | Optimised client: box size around the player outside which chunks unload. |
private bool useTiles | Whether the cave A* recast graph is tiled. |
private float walkableClimb | Cave A* recast graph step height. |
private float walkableHeight | Cave A* recast graph agent height. |
Properties
| Member | What it is |
|---|---|
float CaveConnectionCost { get; } | Cost of the connections between cave layers. Not read anywhere else in this build. |
NetworkPrefab CaveStreamerPrefab { get; } | The cave layer prefab used by default and always on simple servers. |
float DynamicChunkLoadRadius { get; } | Default dynamic load radius of a location chunk. |
float DynamicLoadDistanceMultiplier { get; set; } | Multiplies every chunk's dynamic load strength. Set by the dynamic-load-multiplier command. |
Vector3 LoadBounds { get; set; } | Box size for loading chunks on an optimised client. |
StreamingSettings.SpecialLayer[] SpecialLayers { get; } | Cave layers that use their own prefab, by layer number. |
float StaticChunkLoadRadius { get; } | Default static load radius of a location chunk. |
float StaticLoadDistanceMultiplier { get; set; } | Multiplies every chunk's static load strength. Set by the static-load-multiplier command. |
Vector3 UnloadBounds { get; set; } | Box size for unloading chunks on an optimised client. |
Methods
| Member | What it is |
|---|---|
RecastGraph GetCavePathfindingGraph() | Adds a new recast graph to A* with the cave pathfinding settings and returns it. |