UiListLayout properties:
How it looks on iphone s4:
How it should look:
Does anyone know how to fix this?
UiListLayout properties:
How it looks on iphone s4:
How it should look:
Does anyone know how to fix this?
have you tried using UIAspectRatioConstraint?
I think you’ve used an Offset property somewhere instead of Scale. If it still isn’t fixed, put the list layout in a new sized frame (although you’ve done it already, maybe scaling it inside a frame further MIGHT help?)
Can you show a picture of what it looks like on a pc.. I have a feeling it’s doing just what you told it to do, and the scaling is exactly the same on a different size screen.
This {0.5, 0},{0.4, 0} is the trick to getting to scale the same way no matter the screen size.
You’re telling it to scale this way, with the numbers in the first part of the input.
--LocalScript in StarterPlayerScripts
local uis = game:GetService("UserInputService")
print(uis.MouseEnabled)
You can use something like this to tell if they have a mouse or not. Then you can set the scaling different for the non-mouse players. (most likely not on a pc)
I did a deeper one once..
--LocalScript in StarterPlayerScripts
local UserInputService = game:GetService("UserInputService")
local function checkDeviceType()
local screenSize = workspace.CurrentCamera.ViewportSize
if screenSize.X >= 1024 and screenSize.Y >= 768 then
return "iPad or larger tablet"
elseif screenSize.X >= 800 and screenSize.Y >= 480 then
return "Phone with a larger screen"
else
return "Smaller phone"
end
end
UserInputService.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch then
local deviceType = checkDeviceType()
print("User is using a " .. deviceType)
elseif input.UserInputType == Enum.UserInputType.Keyboard then
print("User is using a keyboard")
end
end)
Can’t say it’s perfect, but I did try to get as many as I could figure out a way to.
All this was exactly for the issue you running into now. Had the same thing happen.
Interface was too small on a phone, using the scaling method like that.
This came from this post .. How to detect if Player is using a Phone?