Change 1 Control style color, but all other change

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RyuShai

I create a matrix include few button

i change button background color by:


connect button signal pressed it sefl, if clicked, change color again

func _on_ColorBtn_pressed() -> void:

I expect only button has clicked change color but all of them changed

Same issue if create inheritance scene, herrited scence chang font size then oprigin would changed. Why ?

:bust_in_silhouette: Reply From: RyuShai

Forget it, i make mistake. I throught ready() call before my function() but in fact is reverse. this my problem

Please provide an explanation about what your problem is so when someone finds this question and ahve the same problem, they can solve it.

codelyok13 | 2022-04-14 10:27