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.
- Listed in Global namespace: I to L
- Nested in
InGameInspector - Inherits or implements
InGameInspector.InGameTool
Constructors
| Member | What it is |
|---|---|
ChunkBounds(InGameInspector inspector) | Creates an InGameInspector.ChunkBounds from inspector. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private GameObject bounds | The cube primitive drawn over the chunk. Hidden from the hierarchy and not saved. |
private LocationChunk currentChunk | The location chunk the cube is currently drawn for. |
private bool isShowing | Whether the bounds cube is turned on. |
private Material usedMaterial | Copy of the inspector's chunk bounds material, whose alpha the up and down buttons change. |
Properties
| Member | What it is |
|---|---|
override string Name { get; } | Shown on the inspector as "Chunks Bounds". |
Methods
| Member | What 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
| Member | What it is |
|---|---|
private void UpdateChunk(LocationChunk newchunk) | Creates, moves and scales the cube to a chunk's bounds, or destroys it when passed null. |