Skip to main content

InGameInspector.LODVizualizer

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

Debug inspector tool that recolours every renderer in the scene by its LOD level, using the inspector's lodColors.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private bool isActiveWhether the LOD colouring is on.
private Material[] lodMaterialsOne material per LOD colour, made from the inspector's lodMaterial.
private List<InGameInspector.LODVizualizer.RendererMaterial> referencesRenderers that were recoloured, with their original materials, so Disable can restore them.

Properties​

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

Methods​

MemberWhat it is
override void Disable()Puts back each renderer's original material and clears the list.
override void Enable(Interactable pickup, Interactor interactor)Resets the tool to inactive.
override void PressClearAsync()Toggles the LOD colouring on or off.
override void PressDown()Does nothing for this tool.
override void PressUp()Does nothing for this tool.
override void ReceiveAngle(float angle)Does nothing for this tool.
override void ReceiveInput(PlayerInput controller)Does nothing for this tool.
override void Update()Does nothing for this tool.
1 private and internal method
MemberWhat it is
private void Activate()Finds every LODGroup in the scene and swaps each LOD level's renderers to that level's colour material.