Skip to content

Commit 8215b8f

Browse files
committed
Fixed size of virtual joystick spawning area
The left and right joysticks now take up exactly one half of the screen
1 parent 7eac9f0 commit 8215b8f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Assets/Android/Scripts/VirtualJoystick.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ public void OnPointerClick(PointerEventData eventData)
172172
}
173173
void AndroidScreenManager_ScreenResolutionChanged(Resolution newResolution)
174174
{
175-
UpdateSizeOfRectTF(newResolution.width);
175+
// UpdateSizeOfRectTF(newResolution.width);
176+
177+
UpdateSizeOfRectTF(rootRectTF.rect.width);
176178
}
177179
}
178180
}

0 commit comments

Comments
 (0)