imgui-godot
imgui-godot copied to clipboard
cannot change values wuth ImGui
i use this following code to change some values that will be important for me to debug on
var player = null
func _DEBUG_UI(delta):
if player != null:
ImGui.Begin("DEBUG_GUI")
ImGui.DragFloat("Vehicle Dirtyness", [player.dirtyness])
ImGui.DragFloat("Vehicle Engine Health", [player_health_engine])
ImGui.DragFloat("Vehicle Body Health", [player_health])
ImGui.End()
the problem is none of these values do change no matter what i do, those values arent controlled by anything else unless there is some circumstances for example engine health reduces only if my player's vehicle goes over its RPM capacity (an V8 going over 10krpm)
no matter what i do those values never change