Skip to main content

InGameInspector.LODBias

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Debug inspector tool that changes Unity's global QualitySettings.lodBias, and puts it back when the tool is turned off.

Constructors​

MemberWhat it is
LODBias(InGameInspector inspector)Creates an InGameInspector.LODBias from inspector.

Fields​

2 private and internal fields
MemberWhat it is
private float baseBiasThe LOD bias when the tool was created, restored by Disable.
private float biasStepHow much each up or down press changes the bias. Starts at 0.1.

Properties​

MemberWhat it is
override string Name { get; }Shown on the inspector as "LOD Bias".

Methods​

MemberWhat it is
override void Disable()Restores teleport mode and resets the LOD bias to the value it had when the tool was built.
override void PressClearAsync()Resets the LOD bias by calling Disable.
override void PressDown()Lowers the LOD bias by biasStep.
override void PressUp()Raises the LOD bias by biasStep.
override void ReceiveAngle(float angle)Sets biasStep from the swipe angle, from 0 to 1 in steps of 0.1.
override void ReceiveInput(PlayerInput controller)Does nothing for this tool.
override void Update()Shows the current LOD bias and step.