0 votes

Problems with NinePatchRect shrinking,Whether the algorithm is wrong?


1.Use a 640x479 resolution picture, set the corner borders, and set the stretch to on.
2.Set rectsize to greater than 640x479, the corners and borders are normal.
3. Set rect
size to less than 640x479, the corners and border cannot maintain the original size,and the pixels are completely distorted.
Cocos and Unity will not have such a similar problem.

Set rect_size <640x479,
When reduced to 363x455, the corners and border cannot maintain the original size, and the pixels are completely distorted.


This will cause confusion for some 2D developers. If the picture is reduced from the original size to the specified size and the corners and borders remain the same, this is definitely a bottleneck for now.

Add an Option to the Control-> NinePatchRect property menu to let developers freely choose whether it is turned on to reduce the size and keep the corner borders unchanged. At present, this will be the demand of many 2D developers.

in Engine by (29 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.