Table of Contents

Class GridDebugger

Namespace
GridForge.Utility

Unity Scene View debugger backed by GridForge diagnostic descriptors.

[ExecuteAlways]
public class GridDebugger : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
GridDebugger
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Properties

DebugAllGrids

Gets or sets whether diagnostics include every active grid.

public bool DebugAllGrids { get; set; }

Property Value

bool

EnableVoxelSelection

Gets whether play-mode voxel selection is enabled.

public bool EnableVoxelSelection { get; }

Property Value

bool

GridIndex

Gets or sets the grid index used when debugging one grid.

public ushort GridIndex { get; set; }

Property Value

ushort

GridWorldComponent

Gets the explicitly related world component.

public GridWorldComponent GridWorldComponent { get; }

Property Value

GridWorldComponent

LastDirtyChangeCount

Gets the number of dirty changes drained during the most recent draw.

public int LastDirtyChangeCount { get; }

Property Value

int

LastQueryCellCount

Gets the cell count from the most recent diagnostic query.

public int LastQueryCellCount { get; }

Property Value

int

LastQuerySkippedCellCount

Gets the skipped-cell count from the most recent diagnostic query.

public int LastQuerySkippedCellCount { get; }

Property Value

int

LastQueryStatus

Gets the status of the most recent diagnostic query.

public GridDiagnosticQueryStatus LastQueryStatus { get; }

Property Value

GridDiagnosticQueryStatus

LastVisitedCellCount

Gets the number of cells visited by the most recent diagnostic query.

public int LastVisitedCellCount { get; }

Property Value

int

SelectedVoxel

Gets the currently selected voxel.

public Voxel SelectedVoxel { get; }

Property Value

Voxel

World

Gets the runtime world hosted by the resolved world component.

public GridWorld World { get; }

Property Value

GridWorld

Methods

BuildDiagnosticQuery()

Builds a diagnostic query from the current inspector settings.

public GridDiagnosticQuery BuildDiagnosticQuery()

Returns

GridDiagnosticQuery

The configured diagnostic query.

TryResolveDiagnosticPhysicalCell(in GridDiagnosticCell, out Voxel)

Tries to resolve a diagnostic descriptor to a physical voxel.

public bool TryResolveDiagnosticPhysicalCell(in GridDiagnosticCell cell, out Voxel voxel)

Parameters

cell GridDiagnosticCell

The diagnostic cell descriptor.

voxel Voxel

Receives the physical voxel.

Returns

bool

true when the descriptor resolves in the active world.