Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Never render content in the display cutout area for Android Export #11723

Open
llama-nl opened this issue Feb 8, 2025 · 0 comments

Comments

@llama-nl
Copy link

llama-nl commented Feb 8, 2025

Describe the project you are working on

Goodot Engine 📱

Describe the problem or limitation you are having in your project

On Android devices with display cutouts (notches), the game content may render in the cutout area/under game cutout area, leading to a suboptimal user experience.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Introduce an option in Godot's Android export settings to prevent rendering content in the display cutout area. This ensures the game interface remains unobstructed and visually consistent across devices with various screen designs.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Add a setting in the Android export configuration, such as Avoid Display Cutout. When enabled, this setting modifies the app's window layout parameters to restrict content from being displayed in the cutout area. for more Never render content in the display cutout area

If this enhancement will not be used often, can it be worked around with a few lines of script?

Though, developers can manually adjust their projects to account for display cutouts, by DisplayServer.get_display_safe_area() but is it too much work to do, even sometime it give unexpected results.

Is there a reason why this should be core and not an add-on in the asset library?

I don't think that developers'll rely in addon for a basic thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants