Skip to main content

InGameInspector.LODUpdater

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

Debug inspector tool that edits the screen-height transition of each LOD level on the LOD group you point at, live.

Constructors​

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

Fields​

4 private and internal fields
MemberWhat it is
private bool changedSet once the selected group's LODs have been edited. Nothing reads it here.
private LOD[] lodsCopy of the selected group's LOD array that edits are made on.
private int selectedIndex of the LOD level being edited.
private LODGroup selectedGroupThe LOD group being edited.

Properties​

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

Methods​

MemberWhat it is
override void Disable()Restores teleport mode and turns off the pointer ray.
override void Enable(Interactable pickup, Interactor interactor)Takes over the teleport button, turns on the pointer ray and clears the selection.
override void PressClearAsync()Clears the selection and hides the text panel.
override void PressDown()Selects the previous LOD level to edit.
override void PressUp()Selects the next LOD level to edit.
override void ReceiveAngle(float angle)Sets the selected level's screenRelativeTransitionHeight from the swipe angle (0 to 1) and applies it.
override void ReceiveInput(PlayerInput controller)On a teleport press with nothing selected, tries to select a group with CheckSelect.
override void Update()Shows the group name, LOD count, selected level and its transition height.
1 private and internal method
MemberWhat it is
private void CheckSelect()Raycasts from the pointer and selects the hit object's LODGroup, or one under its network prefab.