Closed zhangping312 closed 3 years ago
w value display error:
if( isQuaternion ) { Quaternion prevVal = (Quaternion) Value; base.Refresh(); Quaternion val = (Quaternion) Value;
if( val.x != prevVal.x ) inputX.Text = val.x.ToString( RuntimeInspectorUtils.numberFormat ); if( val.y != prevVal.y ) inputY.Text = val.y.ToString( RuntimeInspectorUtils.numberFormat ); if( val.z != prevVal.z ) inputZ.Text = val.z.ToString( RuntimeInspectorUtils.numberFormat ); if( val.w != prevVal.w ) inputW.Text = val.z.ToString( RuntimeInspectorUtils.numberFormat ); } else { Vector4 prevVal = (Vector4) Value; base.Refresh(); Vector4 val = (Vector4) Value; if( val.x != prevVal.x ) inputX.Text = val.x.ToString( RuntimeInspectorUtils.numberFormat ); if( val.y != prevVal.y ) inputY.Text = val.y.ToString( RuntimeInspectorUtils.numberFormat ); if( val.z != prevVal.z ) inputZ.Text = val.z.ToString( RuntimeInspectorUtils.numberFormat ); if( val.w != prevVal.w ) inputW.Text = val.z.ToString( RuntimeInspectorUtils.numberFormat ); }
Looks like I was a copy-paste victim 😞 Thanks for letting me know.
w value display error:
if( isQuaternion ) { Quaternion prevVal = (Quaternion) Value; base.Refresh(); Quaternion val = (Quaternion) Value;