Class GridDebugger
Unity Scene View debugger backed by GridForge diagnostic descriptors.
[ExecuteAlways]
public class GridDebugger : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourGridDebugger
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.didStartMonoBehaviour.didAwakeMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.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.transformComponent.transformHandleComponent.gameObjectComponent.tagObject.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.nameObject.hideFlags
Properties
DebugAllGrids
Gets or sets whether diagnostics include every active grid.
public bool DebugAllGrids { get; set; }
Property Value
EnableVoxelSelection
Gets whether play-mode voxel selection is enabled.
public bool EnableVoxelSelection { get; }
Property Value
GridIndex
Gets or sets the grid index used when debugging one grid.
public ushort GridIndex { get; set; }
Property Value
GridWorldComponent
Gets the explicitly related world component.
public GridWorldComponent GridWorldComponent { get; }
Property Value
LastDirtyChangeCount
Gets the number of dirty changes drained during the most recent draw.
public int LastDirtyChangeCount { get; }
Property Value
LastQueryCellCount
Gets the cell count from the most recent diagnostic query.
public int LastQueryCellCount { get; }
Property Value
LastQuerySkippedCellCount
Gets the skipped-cell count from the most recent diagnostic query.
public int LastQuerySkippedCellCount { get; }
Property Value
LastQueryStatus
Gets the status of the most recent diagnostic query.
public GridDiagnosticQueryStatus LastQueryStatus { get; }
Property Value
LastVisitedCellCount
Gets the number of cells visited by the most recent diagnostic query.
public int LastVisitedCellCount { get; }
Property Value
SelectedVoxel
Gets the currently selected voxel.
public Voxel SelectedVoxel { get; }
Property Value
World
Gets the runtime world hosted by the resolved world component.
public GridWorld World { get; }
Property Value
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
cellGridDiagnosticCellThe diagnostic cell descriptor.
voxelVoxelReceives the physical voxel.