Skip to main content

InGameInspector.ChunkBounds

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

Debug inspector tool that shows the bounds of the location chunk you are in as a see-through cube that follows you between chunks.

Constructors​

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

Fields​

4 private and internal fields
MemberWhat it is
private GameObject boundsThe cube primitive drawn over the chunk. Hidden from the hierarchy and not saved.
private LocationChunk currentChunkThe location chunk the cube is currently drawn for.
private bool isShowingWhether the bounds cube is turned on.
private Material usedMaterialCopy of the inspector's chunk bounds material, whose alpha the up and down buttons change.

Properties​

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

Methods​

MemberWhat it is
override void Disable()Hides the bounds cube if it is showing.
override void Enable(Interactable pickup, Interactor interactor)Does nothing for this tool.
override void PressClearAsync()Toggles the bounds cube on or off for the chunk that best contains the inspector.
override void PressDown()Makes the bounds cube 0.1 more transparent.
override void PressUp()Makes the bounds cube 0.1 more opaque.
override void ReceiveAngle(float angle)Does nothing for this tool.
override void ReceiveInput(PlayerInput controller)Does nothing for this tool.
override void Update()While showing, moves the cube to whichever location chunk now best contains the inspector.
1 private and internal method
MemberWhat it is
private void UpdateChunk(LocationChunk newchunk)Creates, moves and scales the cube to a chunk's bounds, or destroys it when passed null.