Godot Version
4.3 (rc 2) (also tested on 4.2)
Question
I am changing the color of my CanvasModulate
using the following code:
func _physics_process(delta: float) -> void:
room_modulate.color = Color(lerp(start_color, finish_color, light_curve.sample(health / max_health)), 1)
I can confirm that the modulate does work when preset (before loading the scene), and the Color
field is getting updated at runtime. However, the room doesn’t change to the new modulate color. I’ve tried to call queue_redraw()
, but it only works on Control
nodes.