Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | VinicOliver8394 |
I’am making an option button, and i want to change the color of a label that is in another scene, this is my actual code
extends HBoxContainer
export var node = ""
func _on_OptionBox_focus_entered():
get_node("OptionLabel").add_color_override("font_color", Color(1,1,0.3,0.8))
get_node("MinusButton").add_color_override("font_color", Color(1,1,0.3,0.8))
get_node("PlusButton").add_color_override("font_color", Color(1,1,0.3,0.8))
get_node(node).add_color_override("font_color", Color(1,1,0.3,0.8))
Is the other scene in the same scene tree as this script?
Ertain | 2022-01-14 20:42
no, it’s not
VinicOliver8394 | 2022-01-14 20:50