Skip to main content

InGameInspector.LODForcer

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

Debug inspector tool that forces a chosen LOD level on the LOD group you point at.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private int currentLODThe forced LOD index, or -1 for not forced.
private int lodsNumber of LOD levels in the selected group.
private LODGroup selectedGroupThe LOD group being forced.

Properties​

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

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. It nulls the group before un-forcing, so the forced LOD stays forced.
override void PressDown()Forces the previous LOD level, wrapping round.
override void PressUp()Forces the next LOD level, wrapping round.
override void ReceiveAngle(float angle)Does nothing for this tool.
override void ReceiveInput(PlayerInput controller)On a teleport press with nothing selected, tries to select a group with CheckSelect.
override void Update()Shows the selected group and LOD. The forced and not forced labels are swapped in the code.
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.