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

SafeAreaPadding's "Unlocked" mode #16

Closed
5argon opened this issue Jun 3, 2019 · 1 comment
Closed

SafeAreaPadding's "Unlocked" mode #16

5argon opened this issue Jun 3, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@5argon
Copy link
Owner

5argon commented Jun 3, 2019

Theoretically, it should be possible to make a side completely unlocked. Currently Zero is literally locking that side to 0 and doesn't allow you to move or animate it. It would be useful because mostly you only care of a single edge yet all other edges are stretched out or locked.

However layout programming is a lot of mind fucks and I don't think I want to tackle this problem right now.. the current implementation I belive already contains a lot of hacks that works just because I lock all sides.

For starters, the RectTransform system actually express the offset of one side as a combination of size delta and anchored position that in turn related to your pivot, so you dragging one side casually actually results in multiple value changes inside. Making this not trivial to implement.

@5argon 5argon added the enhancement New feature or request label Jun 7, 2019
@5argon
Copy link
Owner Author

5argon commented Oct 26, 2019

I give up on this, usually "padding" means stretched out rect and I think it is usable for many problems as it is.

@5argon 5argon closed this as completed Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant