Skip to content

Conversation

@mirsella
Copy link
Contributor

@mirsella mirsella commented Jan 3, 2026

Summary

Derives Reflect on FpsOverlayConfig and FrameTimeGraphConfig to enable runtime reflection capabilities for these configuration structs.
For example, allows modifying the config in bevy inspector egui.

Changes

  • Added Reflect derive to FpsOverlayConfig with #[reflect(Resource)] attribute
  • Added Reflect derive to FrameTimeGraphConfig (required since it's a field in FpsOverlayConfig)
  • Added use bevy_reflect::Reflect; import

@mirsella
Copy link
Contributor Author

mirsella commented Jan 3, 2026

maybe we can get that into 0.18 ?

@mirsella mirsella force-pushed the reflect-fpsoverlayconfig branch from 58f9c35 to 7779130 Compare January 3, 2026 16:40
@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it A-Reflection Runtime information about types A-Diagnostics Logging, crash handling, error reporting and performance analysis labels Jan 3, 2026
@alice-i-cecile alice-i-cecile added this to the 0.18 milestone Jan 3, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 3, 2026
Merged via the queue into bevyengine:main with commit 51a6fed Jan 3, 2026
48 checks passed
cart pushed a commit that referenced this pull request Jan 8, 2026
## Summary

Derives `Reflect` on `FpsOverlayConfig` and `FrameTimeGraphConfig` to
enable runtime reflection capabilities for these configuration structs.
For example, allows modifying the config in bevy inspector egui.

## Changes

- Added `Reflect` derive to `FpsOverlayConfig` with
`#[reflect(Resource)]` attribute
- Added `Reflect` derive to `FrameTimeGraphConfig` (required since it's
a field in `FpsOverlayConfig`)
- Added `use bevy_reflect::Reflect;` import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Diagnostics Logging, crash handling, error reporting and performance analysis A-Reflection Runtime information about types C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants