Add DebugVisualizer to GameObjectFinder and Monkey#271
Merged
nowsprinting merged 12 commits intomasterfrom Oct 24, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds debug visualization capabilities to GameObjectFinder and Monkey to help investigate why GameObjects cannot be found or operated on. The DefaultDebugVisualizer displays visual indicators for three states: "not reachable" (blocked/not hit), "not interactable", and "ignored".
Key changes:
- New IVisualizer interface and DefaultDebugVisualizer implementation with configurable pictograms
- Integration of visualizer into GameObjectFinder and Monkey through optional parameters
- FadeOutBehaviour component for animated indicator lifecycle management
Reviewed Changes
Copilot reviewed 27 out of 31 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| Runtime/Visualizers/*.cs | New visualizer interface, implementation, and fade-out behavior for debug indicators |
| Runtime/GameObjectFinder.cs | Added visualizer parameter and filter methods that show indicators when conditions fail |
| Runtime/Monkey.cs | Added visualizer parameter to display indicators for ignored and unreachable objects |
| Runtime/MonkeyConfig.cs | Added Visualizer property for configuration |
| Resources/** | Icon sprite assets and metadata for visual indicators |
| Tests/Runtime/*Test.cs | Test coverage for visualizer functionality |
| README.md | Documentation for using the debug visualizer feature |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
c95f04b to
62bc812
Compare
This comment has been minimized.
This comment has been minimized.
Code Metrics Report
Details | | master (180bd4e) | #271 (407cc21) | +/- |
|---------------------|------------------|----------------|--------|
+ | Coverage | 85.0% | 85.0% | +0.0% |
| Files | 67 | 69 | +2 |
| Lines | 2256 | 2405 | +149 |
+ | Covered | 1919 | 2046 | +127 |
- | Code to Test Ratio | 1:1.3 | 1:1.3 | -0.1 |
| Code | 4161 | 4380 | +219 |
+ | Test | 5723 | 6011 | +288 |
- | Test Execution Time | 9m43s | 12m23s | +2m40s |Code coverage of files in pull request scope (98.9% → 94.9%)
Reported by octocov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
GameObjectFinder
Using the Debug Visualizer can help you investigate why a
GameObjectcannot be found.DefaultDebugVisualizershows visual indicators when "not reachable" or "not interactable" occurs.To use it, simply pass an instance to the
GameObjectFinderconstructor, like this:Monkey
Using the Debug Visualizer can help you investigate why a
GameObjectcannot be operated on.DefaultDebugVisualizershows visual indicators when "not reachable" or "ignored" occurs.To use it, simply set an instance to the
MonkeyConfig.Visualizer, like this:Screenshots
Not reachable:

Not interactable:

Ignored:
