bevyengine / bevyengine/bevy

Simple Entity Inspect hotkey

Open
#25,030 0 comments 1 reaction 1 assignee Claimed by @alice-i-cecile View on GitHub
A-Dev-Tools C-Feature S-Ready-For-Implementation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

While we're waiting on the inspector, something that could be implemented in just a few lines of code is an entity inspection hotkey.

## What solution would you like?

A plugin which, when added, would register a global hotkey (something like ctrl/command-shift-I for "inspect). This would take whatever entity the mouse is currently hovering over, and call `inspect()` on it, printing it to the console. Whether this should print all children is TBD - perhaps the `alt` key could select between hierarchical and non-hierarchical readouts.

Note that it would be the user's responsibility to ensure that the appropriate picking backends were installed - normally only the UI backend is enabled, and if you wanted to use this to inspect 3d models, you'd need to install one of the 3d backends (either raycast or physics).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.