DebugSettingsScanner

DebugSettingsScanner discovers [DebugGroup] components and their [DebugSetting]-tagged fields via reflection, returning them as ScannedGroup results sorted by group Order then name.

Namespace: AplosConsole.Settings.Scanner

Public methods

ScanScene

Parameters:

  • includeInactive (bool) — When true, inactive GameObjects are also scanned. Defaults to false.

Example

var groups = DebugSettingsScanner.ScanScene();

Description: Scans every MonoBehaviour in the active scene(s) for [DebugGroup] components.


ScanObjects

Parameters:

  • roots (IEnumerable<GameObject>) — The GameObjects to scan.
  • includeChildren (bool) — Whether to also scan each root's children. Defaults to true.
  • includeInactive (bool) — When true, inactive GameObjects are also scanned. Defaults to false.

Example

var groups = DebugSettingsScanner.ScanObjects(new[] { myGameObject });

Description: Scans only the MonoBehaviours on the supplied GameObjects (and optionally their children).


ScanObject

Parameters:

  • root (GameObject) — The GameObject to scan.
  • includeChildren (bool) — Whether to also scan the root's children. Defaults to true.
  • includeInactive (bool) — When true, inactive GameObjects are also scanned. Defaults to false.

Example

var groups = DebugSettingsScanner.ScanObject(myGameObject);

Description: Scans a single GameObject and its children.


FilterByGroup

Parameters:

  • scan (IReadOnlyList<ScannedGroup>) — A previous scan result to filter.
  • groupName (string) — The group name to match.

Example

var windowGroups = DebugSettingsScanner.FilterByGroup(groups, "Window Bar");

Description: Filters a previous scan result to groups whose name matches groupName.