So I’m making a UI that shows the player’s icon in a circle ImageLabel but the player’s icon isn’t cropping correctly. It works fine if it’s in a box more shape but not a circle.
Is there any way to solve this issue?
So I’m making a UI that shows the player’s icon in a circle ImageLabel but the player’s icon isn’t cropping correctly. It works fine if it’s in a box more shape but not a circle.
Is there any way to solve this issue?
Maybe you should make the actual icon a bit smaller
No, it’s suppose to crop on the edges.
It is though, may I see your code so we can help?
Here’s the code for the player icon
local Players = game:GetService("Players")
local player = Players.LocalPlayer
-- Fetching Thumbnail
local userId = player.UserId
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size420x420
local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
local imageLabel = script.Parent
imageLabel.Image = content
Hmmm that’s weird. I assume your using UI Corner. Anyways you might just need to re do it.
If you are using UI corner it should work perfectly fine
Worked. Switched over to UICorner. Was just using a basic image label for the round.
To have the Player icon ImageLable be clipped by the circular background, it will have to be it’s child. You will also need to have ClipsDescendants enabled on the circular background. You must also use a UICorner object, instead of SliceScale, as SliceScale doesn’t calculate the bounds correctly.