You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For clarity we can say there is 2 versions of this script
the "margin" version, which is the one in the code
the "additional element" padding version, which is commented out
This might be a Unity 2022.2 beta issue, but when setting width & height to 100%, and flex shrink to 0, right margin no longer registers correctly. However, commenting those 3 lines out and adding style.flexGrow = 1 will get right margin working, HOWEVER Unity starts throwing errors:
"Layout update is struggling to process current layout (consider simplifying to avoid recursive layout)"
I have not noticed any other issues with my UI or performance even with these errors.
So either
A) Unity needs to fix the right margin working with 100% width & height, & 0 shrink
B) User Disable or Unity Fix the unnecessary error dump
C) If A and B is Unity working correctly, then we need to figure out new code to get the margin version working
D) or going back to the "additional element" version which is what I've resorted to
edit: Reason for using Unity 2022.2 beta is getting ready for ECS 1.0. It's the only way to use ECS 1.0 at the moment.
The text was updated successfully, but these errors were encountered:
For clarity we can say there is 2 versions of this script
This might be a Unity 2022.2 beta issue, but when setting width & height to 100%, and flex shrink to 0, right margin no longer registers correctly. However, commenting those 3 lines out and adding style.flexGrow = 1 will get right margin working, HOWEVER Unity starts throwing errors:
"Layout update is struggling to process current layout (consider simplifying to avoid recursive layout)"
I have not noticed any other issues with my UI or performance even with these errors.
So either
A) Unity needs to fix the right margin working with 100% width & height, & 0 shrink
B) User Disable or Unity Fix the unnecessary error dump
C) If A and B is Unity working correctly, then we need to figure out new code to get the margin version working
D) or going back to the "additional element" version which is what I've resorted to
edit: Reason for using Unity 2022.2 beta is getting ready for ECS 1.0. It's the only way to use ECS 1.0 at the moment.
The text was updated successfully, but these errors were encountered: