Skip to main content

GameSettings

A class in Root.Township, Alta.Utilities.

The player's local game options, saved as JSON in the storage folder as GameConfiguration. Marked obsolete but still read everywhere through SettingsManager.GameConfig.Settings.

Constructors​

MemberWhat it is
GameSettings()Creates a GameSettings with default values.

Properties​

MemberWhat it is
bool AccessibleDocksAreToggle { get; set; }Whether accessible docks open as a toggle rather than only while held.
ApiEndpoint ApiEndpoint { get; set; }Which web API endpoint ApiAccess connects to.
float AudioFXVolumeMultiplier { get; set; }Volume multiplier for sound effects, 0 to 2.
float CameraPhotoResolutionScale { get; set; }Resolution scale for photos taken with the in-game camera.
bool CanSellSkillsWithChildren { get; set; }Lets a player sell back a skill that has skills unlocked after it. Off by default.
float DefaultCullingDistance { get; set; }Camera cull distance for layer 0 (default layer), applied to the player camera. Default 100.
float HapticsStrengthMultiplier { get; set; }Multiplier for controller haptic strength.
bool HasAccessibilityFeatures { get; set; }Whether accessibility features are on. Set from the accessibility board.
bool HasAmbientOcclusionEnabled { get; set; }Whether ambient occlusion is on.
bool HasGrabAssist { get; set; }Whether grab assist helps the hand pick up nearby items.
bool HasHapticsWhenToggleHolding { get; set; }Whether docks give haptics while an item is held with toggle grip.
int HeightAssistValue { get; set; }Saved height adjustment for the player, or -1 when not set.
bool IsBendingBodyOnLocalBody { get; set; }Whether the local player's body bends with movement.
bool IsInvertingSmoothWalkAndRun { get; set; }Swaps walk and run for smooth locomotion, so running is the default.
SmoothRotationMode IsSmoothRotationOnSwipe { get; set; }Smooth rotation mode used when swiping.
bool IsUsingFreeGestureMode { get; set; }Uses free hand gestures when the controller tracks finger skeletons.
bool IsUsingSmoothLocomotion { get; set; }Whether smooth locomotion is on.
string LogSettingsPath { get; set; }Path to a custom NLog config file. Empty uses the default.
string ModsDirectoryPath { get; set; }Folder the built-in C# script loader and debug command runner read from. Stored as mods_directory_path.
MovementConfortSpeed MovementComfortSpeed { get; set; }Comfort vignette speed setting.
MovementConfortStrength MovementComfortStrength { get; set; }Comfort vignette strength setting.
int PixelLightCount { get; set; }Maximum per-pixel lights, 1 to 8 (default 5).
bool PlayerNamesToggle { get; set; }Whether player names stay shown as a toggle rather than on a timer.
DirectionMode PressLocomotionMode { get; set; }Direction mode for smooth locomotion on a stick press.
bool RenderOneCameraFromOtherPlayers { get; set; }Whether one hand camera held by another player is rendered for you.
DockHideOptions ScreenshotDockHideOptions { get; set; }When docks hide themselves in screenshots (never, when empty, and so on).
float SelfStepVolume { get; set; }Volume of your own footstep sounds.
ActiveHandIndex SmoothLocomotionActiveHand { get; set; }Which hand drives smooth locomotion.
RunMode SmoothLocomotionRunMode { get; set; }How running is triggered in smooth locomotion.
SmoothRotationSpeed SmoothRotationSpeed { get; set; }Speed preset for smooth turning.
RoomRotationMode SnapRotation { get; set; }Room rotation mode, snap by default.
SnapRotationMode SnapRotationMode { get; set; }Which snap rotation style is used.
float StreamingResolutionScale { get; set; }Resolution scale for the streaming camera.
SwipeSensitivityLevel SwipeSensitivityLevelValue { get; set; }Sensitivity preset for swipe input.
DirectionMode TouchLocomotionMode { get; set; }Direction mode for smooth locomotion on a stick touch.
bool UseGrabPositionMemory { get; set; }Whether grabbing from a dock remembers how the item was last held.
float ViewFinderResolutionScale { get; set; }Resolution scale for the camera's viewfinder (default 0.2).

Methods​

1 private and internal method
MemberWhat it is
private object System.ICloneable.Clone()Returns a shallow copy of the settings (MemberwiseClone).

Used in​

Members of other types that take, return or hold a GameSettings: