Godot Version
4.4.1.stable
Question
The GDScript version:
var btn = $WindowDialog.get_close_button()
btn.visible = false
I can’t find GetCloseButton() in C# – Is it not there or is it somewhere outside the Window class?
4.4.1.stable
The GDScript version:
var btn = $WindowDialog.get_close_button()
btn.visible = false
I can’t find GetCloseButton() in C# – Is it not there or is it somewhere outside the Window class?
Which class are you trying to use? Because the base Window
class doesn’t have a get_close_button
in GDScript either.
If you’re using the ConfirmationDialog
class then you have a get_cancel_button
but no get_close_button
at all:
I’ve looked up all the Window related items in the Godot docs and I couldn’t find a single mention of the function called get_close_button
.
Where do you see this?
This function doesn’t seem to exist in GDCript either unless you’re you’re using a custom implementation.
Ah, sounds like this was a 3.x feature, then.