Hello,
on my Mac the GUI of my game is in the middle of the screen, but on my iPad it isn't. I think pixel precision is not working. My Project settings:
Width: 2048
Height: 1536
Resizable: True
Allow Hippie: True
Orientation: landscape
Mode: viewport
Aspect: expand
With the following code, I want to move the GUI to the middle of the screen:
func _ready():
window_x = get_viewport().size.x
window_y = get_viewport().size.y
$ButtonStart.rect_position = Vector2(window_x/2-300, 653.056)
$ButtonAchievements.rect_position = Vector2(window_x/2-300, 853.056)
$ButtonOptions.rect_position = Vector2(window_x/2-300, 1053.056)
Is in the iOS Device another viewport or why is all moved to the left? Is a my project configuration not correct?
Thanks!