Non-parent window not accepting transparency
Asked Answered
R

3

0

I'm trying to get both the parent window and child window transparent so I can implement a separate titlebar system for my game, along with some other gimmicks;

However, as shown in the image, the background transparency is not accepted even though I have set both the parent and child window property to be transparent, along with display/window/per_pixel_transparency/allowed, display/window/size/transparent, and rendering/viewport/transparent_background to the right values. How do I get these working?

Godot version: v4.1.1.stable.official [bd6af8e0e]

Rockingham answered 6/10, 2023 at 20:54 Comment(0)
T
0

Did you check the Project Settings? There's a setting in there that can affect this. Link below:

The Docs are your friend (sometimes)

Specifically:
This property has no effect if either ProjectSettings.display/window/per_pixel_transparency/allowed, or the window's Viewport.transparent_bg is set to false.

Twickenham answered 8/10, 2023 at 1:38 Comment(0)
R
0

Twickenham Yes, I did check the mentioned settings as I said in the post. The window is transparent for the first half second as it fades in (when the project starts) but quickly becomes opaque after even using the transparent_bg property.

Rockingham answered 8/10, 2023 at 19:46 Comment(0)
J
0

Rockingham The window is transparent for the first half second as it fades in (when the project starts) but quickly becomes opaque

This is probably a stupid question, but does your window manager's compositor normally fade windows in when opening them?

Jacobine answered 8/10, 2023 at 22:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.