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

Auto layout - auto spacing is not imported correctly #66

Open
ibrahimpenekli opened this issue Jul 26, 2023 · 7 comments
Open

Auto layout - auto spacing is not imported correctly #66

ibrahimpenekli opened this issue Jul 26, 2023 · 7 comments
Assignees
Labels
bug Something isn't working ugui Built-in UI (uGUI)

Comments

@ibrahimpenekli
Copy link
Member

In Unity, Spacing expected to be 0 when auto spacing is enabled in Figma:

WhatsApp Image 2023-07-26 at 14 40 08

WhatsApp Image 2023-07-26 at 14 40 32

@ibrahimpenekli ibrahimpenekli added the bug Something isn't working label Jul 26, 2023
@gunseliozkan
Copy link
Collaborator

Isn't spacing should be flexible according to number of layout elements rather than 0?

@gunseliozkan
Copy link
Collaborator

Like:

@gunseliozkan
Copy link
Collaborator

Nvm, got it. Child force expand should be on in parent in order to mimic this behavior. Spacing stays 0 this way.

@ibrahimpenekli
Copy link
Member Author

Nvm, got it. Child force expand should be on in parent in order to mimic this behavior. Spacing stays 0 this way.

It was already in parent in the first example above.

@ibrahimpenekli
Copy link
Member Author

Isn't spacing should be flexible according to number of layout elements rather than 0?

No, layout group should calculate it on-the-fly.

@gunseliozkan
Copy link
Collaborator

Child force expand adds extra space to the trailing part of layout ->

Ekran Resmi 2023-07-31 11 54 32

@ibrahimpenekli ibrahimpenekli added the ugui Built-in UI (uGUI) label Aug 1, 2023
@ibrahimpenekli
Copy link
Member Author

We could calculate "Spacing" of the layout group component on-the-fly in another component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ugui Built-in UI (uGUI)
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants