imgui-godot icon indicating copy to clipboard operation
imgui-godot copied to clipboard

cannot change values wuth ImGui

Open sinaSPOGames opened this issue 4 months ago • 4 comments

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

sinaSPOGames avatar Oct 21 '24 16:10 sinaSPOGames