@@ -216,15 +216,18 @@ protected void Update()
216
216
_originDrawer . UpdateAndDraw ( _originMaterial ) ;
217
217
}
218
218
219
- _valuesSourceReportBuilder . Length = 0 ;
220
- _valuesSourceReportBuilder . Append ( "L0\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . L0 ) ?? float . NaN ) . AppendLine ( )
221
- . Append ( "L1\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . L1 ) ?? float . NaN ) . AppendLine ( )
222
- . Append ( "L2\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . L2 ) ?? float . NaN ) . AppendLine ( )
223
- . Append ( "R0\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . R0 ) ?? float . NaN ) . AppendLine ( )
224
- . Append ( "R1\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . R1 ) ?? float . NaN ) . AppendLine ( )
225
- . Append ( "R2\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . R2 ) ?? float . NaN ) . AppendLine ( ) ;
226
-
227
- ValuesSourceReportText . val = _valuesSourceReportBuilder . ToString ( ) ;
219
+ if ( DebugDrawEnableToggle . val )
220
+ {
221
+ _valuesSourceReportBuilder . Length = 0 ;
222
+ _valuesSourceReportBuilder . Append ( "L0\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . L0 ) ?? float . NaN ) . AppendLine ( )
223
+ . Append ( "L1\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . L1 ) ?? float . NaN ) . AppendLine ( )
224
+ . Append ( "L2\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . L2 ) ?? float . NaN ) . AppendLine ( )
225
+ . Append ( "R0\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . R0 ) ?? float . NaN ) . AppendLine ( )
226
+ . Append ( "R1\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . R1 ) ?? float . NaN ) . AppendLine ( )
227
+ . Append ( "R2\t " ) . AppendFormat ( "{0,5:0.000}" , _valuesSource ? . GetValue ( DeviceAxis . R2 ) ?? float . NaN ) . AppendLine ( ) ;
228
+
229
+ ValuesSourceReportText . val = _valuesSourceReportBuilder . ToString ( ) ;
230
+ }
228
231
229
232
DebugDraw . Draw ( ) ;
230
233
DebugDraw . Enabled = DebugDrawEnableToggle . val ;
0 commit comments