Minimized to system tray

Godot Version

4.X

Question

Hello! Is it possible to minimize the game window to the system tray using code? (probably for Windows OS)
I found some asset in library, but it doesn’t seem to work.

UPD. Add the sample
tray

You can simply call the following, or possibly hook it up to a signal.

DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MINIMIZED);

I can minimized the game window.
I’m talking about minimized to system tray (pic)
tray

This is not currently supported: Add support for OS system tray to allow closing/minimizing exported projects to the tray · Issue #2349 · godotengine/godot-proposals · GitHub

You can use third-party programs to achieve this with any application like RBTray.

1 Like

Thank you! I’l be better waiting for

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.