Closed PropFault closed 3 weeks ago
Thanks for reporting, there was indeed a bug in how the parameter was converted to a native array.
I updated the demo to be sure the histogram displays and updates correctly: https://github.com/pkdawson/imgui-godot/blob/master/doc/examples/GdsDemo/demo.gd
Fixed in v5.1.3
Hi,
I have been trying to use this plugin to make a sort of fps-graph in godot for a few hours now and it seems that the plotting functions currently do not work as intended, or work in a way I fail to understand.
Expected Behavior: I input an array of godot floats (GDScript), the array reflects these values correctly and the correct values can be read.
Real Behavior: Only first value is shown correctly, rest of values are displayed as garbled floats (mostly small values in scientific notation on hover).![image](https://github.com/pkdawson/imgui-godot/assets/48217243/5a9c486c-7fc7-4b77-b6f5-249ff1e2a74f)
Full code for widget:
NOTE: I disabled the offset-scrolling in code for debug purposes. Also I noticed that the Plots do not update if the array is changed when im not offset-scrolling. Is this normal? I am not used to imgui
Please help me with this. I really like the idea of using this plugin to create plots for debug purposes, but right now i can not get it to work.
I tried setting the stride to 8 (8 bytes because GDScript uses doubles for all values I think) but that didnt help.