Hi all! I have this paper GUI in my game with text on it. In the video, you can see the paper sizes down and the text jitters and changes size to fit. How do I make the text look the same while the paper is sizing down?
Are you using the TextScaled property, or just TextWrapped and tweening the font size?
add a UIAspectRatioConstraint to the paper image.
i think the paper is getting very slightly squished!
i’m using TextScaled with a UITextSizeConstraint
i thought i tried this, but i guess not. still didn’t change much, though
A suggestion that you could try is to have the paper be a physical part that is placed in front of the camera (a small one that is very close to avoid it clipping into objects in front) and put the text inside a SurfaceGui. The SurfaceGui’s SizingMode should be set to FixedSize and you can find the pixel size of a piece of paper, and resize the part accordingly too.
This means that no matter how you resize the part, the text inside will not be affected by the wrapping re-calculating
So simply tween the size of the page part, and change the offset CFrame value from the camera. (Or utilise cam:ViewportPointToRay to get the ray origin and set the page CFrame respective to that to ensure it’s on the correct part of the screen.)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.