You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS/device including version: MacOS Catalina. MBP 2018.
Issue description: Changing window size programmatically in the ProjectSettings singleton takes no effect.
Steps to reproduce: Create a Godot mono project with any resolution different from the bellow example. Create a scene and attach a C# script to it with the following code in the _Ready() function:
This print actually prints the values you set right before, but the actual window size does not change from the one you set in the project settings inside the Godot editor.
Minimal reproduction project: NA
The text was updated successfully, but these errors were encountered:
This is intended, as project settings are only read on startup. Instead, set OS.window_size directly. For instance, in GDScript, you'd do:
OS.window_size=Vector2(1280, 720)
We started warning about this in front of some project settings in the class reference, but doing so for every setting would be kind of tedious slightly_frowning_face
Hi, your suggestion seems not working in C# ( I didn't tried in GDScript).
in C# I use: OS.WindowSize = new Vector2(800, 600);
But if I set in project properties 1920 and 1080 the statement doesn't work.
I miss something?
Thanks.
Godot version: 3.2.1 RC2 Mono Version
OS/device including version: MacOS Catalina. MBP 2018.
Issue description: Changing window size programmatically in the ProjectSettings singleton takes no effect.
Steps to reproduce: Create a Godot mono project with any resolution different from the bellow example. Create a scene and attach a C# script to it with the following code in the _Ready() function:
This print actually prints the values you set right before, but the actual window size does not change from the one you set in the project settings inside the Godot editor.
Minimal reproduction project: NA
The text was updated successfully, but these errors were encountered: