Class ClientVisualSettings
The player's sky, weather and ambient-life settings: the Graphics tab's SKY, WEATHER and AMBIENT LIFE rows.
public static class ClientVisualSettings
- Inheritance
-
ClientVisualSettings
- Inherited Members
Remarks
Overlays, never edits. Every one of these systems takes its budget from the Weather Render Profile, a ScriptableObject: writing a player's choice into it would, in the editor, rewrite the asset. So each setting is read where the system reads its profile and combined with it there (switched off, or a different tier's numbers), and the profile is left as authored.
Levels are tiers. A VisualLevel other than Auto picks which Quality preset's
numbers a system uses (TierLevel(VisualLevel) → WeatherRenderProfile.TierFor), so Low
clouds on the High Fidelity preset are exactly the Performant preset's clouds: values already
tuned and measured, not a multiplier nobody has looked at.
Read every frame, cheaply. The values are read from the settings store once per frame at most and held, so a system asking several times a frame pays a field read; a change made in the options panel, a profile load or a reset is picked up on the next frame.
Fields
LifeSection
See SkySection.
public const string LifeSection = "options-life-list"
Field Value
Rows
Every row, in the order shown. The defaults here are the defaults the systems act on: a fresh install draws everything, at the Quality preset's own level.
public static readonly ClientVisualSettings.Row[] Rows
Field Value
- Row[]
SkySection
The section of the Graphics tab a row belongs to, as the name of its list container.
public const string SkySection = "options-sky-list"
Field Value
WeatherSection
See SkySection.
public const string WeatherSection = "options-weather-list"
Field Value
Properties
CloudQuality
The cloud march's level (SkySystem SetCloudGlobals).
public static VisualLevel CloudQuality { get; }
Property Value
CloudShadows
Whether the clouds shade the ground.
public static bool CloudShadows { get; }
Property Value
CloudTierLevel
The Quality level the clouds take their march from.
public static int CloudTierLevel { get; }
Property Value
FallingLeaves
Whether leaves fall under the trees.
public static bool FallingLeaves { get; }
Property Value
FloatingDebris
Whether the sea's floating weed, wood and ice are drawn (SeaFloatSystem).
public static bool FloatingDebris { get; }
Property Value
GodRays
Whether the sun's shafts through the cloud are drawn.
public static bool GodRays { get; }
Property Value
HeatHaze
Whether the heat shimmer is drawn (FishHeatShimmerFeature).
public static bool HeatHaze { get; }
Property Value
LightningFlashes
Whether lightning lights the scene; the bolts are drawn either way.
public static bool LightningFlashes { get; }
Property Value
SeaLife
Whether the sea's life is drawn (SeaLifeSystem).
public static bool SeaLife { get; }
Property Value
VolumetricFog
Whether the froxel fog volume runs (FishVolumetricFogFeature); the height fog draws in its place.
public static bool VolumetricFog { get; }
Property Value
WeatherEffects
The precipitation, motes, splashes, rain curtains, vortices and meteors' level.
public static VisualLevel WeatherEffects { get; }
Property Value
WeatherTierLevel
The Quality level the weather's particles, curtains, vortices and meteors take their budget from.
public static int WeatherTierLevel { get; }
Property Value
Wildlife
Whether the land's ambient life is drawn (AmbientLifeSystem, its caves included).
public static bool Wildlife { get; }
Property Value
WildlifeScale
The share of the ambient-life budget drawn: Low a third, Medium two thirds, Auto and High all of it.
public static float WildlifeScale { get; }
Property Value
Methods
GetBool(string, bool)
Reads a switch row's value.
public static bool GetBool(string key, bool fallback)
Parameters
Returns
GetLevel(string)
Reads a level row's value.
public static VisualLevel GetLevel(string key)
Parameters
keystring
Returns
SetBool(string, bool)
Writes a switch row and tells whoever listens.
public static void SetBool(string key, bool value)
Parameters
SetLevel(string, VisualLevel)
Writes a level row and tells whoever listens.
public static void SetLevel(string key, VisualLevel level)
Parameters
keystringlevelVisualLevel
TierLevel(VisualLevel)
The Quality level whose tier a system at level takes its budget from.
public static int TierLevel(VisualLevel level)
Parameters
levelVisualLevel
Returns
Events
OnChanged
Raised when any of these settings is changed through this class.
public static event Action OnChanged