Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: UISizeBy doesn't work. Use SetSizeWithCurrentAnchors instead of size delta. #108

Open
Tymski opened this issue Nov 26, 2020 · 0 comments

Comments

@Tymski
Copy link

Tymski commented Nov 26, 2020

You set size delta instead of using the SetSizeWithCurrentAnchors method.
This doesn't work on the majority of anchor settings.

Any stretching on anchor settings will break your code in half.
image

https://docs.unity3d.com/ScriptReference/RectTransform.SetSizeWithCurrentAnchors.html

@Tymski Tymski changed the title UISizeBy doesn't work. Use SetSizeWithCurrentAnchors instead of size delta. BUG: UISizeBy doesn't work. Use SetSizeWithCurrentAnchors instead of size delta. Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant