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

set_render_target_to_screen_rect in Godot 3 #17605

Closed
Miminuit opened this issue Mar 18, 2018 · 3 comments
Closed

set_render_target_to_screen_rect in Godot 3 #17605

Miminuit opened this issue Mar 18, 2018 · 3 comments

Comments

@Miminuit
Copy link

Hi,
With Godot 3, it seems the set_render_target_to_screen_rect function for viewport was removed. Is there any replacement of this function, or any workaround?

I was using this function in Godot 2.x to display my pixel perfect game scaled up by integers values only, and with black bars around the viewport.

@chanon
Copy link
Contributor

chanon commented Mar 20, 2018

I wrote an explanation and a complete example for how you can do that in Godot 3.0:

See:
#6506 (comment)
for the explanation, and the comment after it for the full downloadable example.

There are also some other ways to do it from others in the thread.

@volzhs
Copy link
Contributor

volzhs commented Mar 20, 2018

please, use https://godotengine.org/qa/ for questions.

@Calinou
Copy link
Member

Calinou commented Aug 28, 2020

Closing per @chanon's comment.

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

4 participants