File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,14 @@ impl RapierDebugRenderPlugin {
74
74
}
75
75
76
76
/// Context to control some aspect of the debug-renderer after initialization.
77
- #[ derive( Resource ) ]
77
+ #[ derive( Resource , Reflect , FromReflect ) ]
78
+ #[ reflect( Resource ) ]
78
79
pub struct DebugRenderContext {
79
80
/// Is the debug-rendering currently enabled?
80
81
pub enabled : bool ,
81
82
/// Pipeline responsible for rendering. Access `pipeline.mode` and `pipeline.style`
82
83
/// to modify the set of rendered elements, and modify the default coloring rules.
84
+ #[ reflect( ignore) ]
83
85
pub pipeline : DebugRenderPipeline ,
84
86
/// Are the debug-lines always rendered on top of other primitives?
85
87
pub always_on_top : bool ,
@@ -97,6 +99,8 @@ impl Default for DebugRenderContext {
97
99
98
100
impl Plugin for RapierDebugRenderPlugin {
99
101
fn build ( & self , app : & mut App ) {
102
+ app. register_type :: < DebugRenderContext > ( ) ;
103
+
100
104
app. add_plugin ( lines:: DebugLinesPlugin :: always_on_top ( self . always_on_top ) )
101
105
. insert_resource ( DebugRenderContext {
102
106
enabled : self . enabled ,
You can’t perform that action at this time.
0 commit comments