im trying to change the panel's border width through code

Godot Version

← 4 →

im a beginner and trying to change the panel’s border width through code for my text box to display correctly when i fullscreen but i keep getting this error and i dont know how to fix it

Theme and theme overrides are not directly accessible as you have tried.
Try something like:

	var stylebox:StyleBoxFlat = $your_panel.get_theme_stylebox("panel")
	stylebox.border_width_left = 5
1 Like