I'm trying to make UI for my game and making a button that changes its own focus neighbour when pressed:
$SettingsButton.focus_neighbour_left = $ItemGrid/Slot2
But when I press the button, it gives this error:
Invalid set index 'focus_neighbour_left' (on base: 'TextureButton') with value of type 'TextureButton'.
I tried searching around but I don't know what this error is telling me or how to fix it.
To be clear, the scene tree isn't changing and Slot2 is a TextureButton.