gilzoide / unity-flex-ui

Flexbox layout support for Unity UI using the Yoga layout engine
The Unlicense
80 stars 5 forks source link

All children of a flexbox Gamobject gets NaN on runtime #11

Closed timurproko closed 3 months ago

timurproko commented 3 months ago

Steps to reproduce

  1. Install Unity 2023.2.14f1
  2. Install addon via Package Manager and Git Url
  3. Create a layout with a couple of nested flexbox Gameobjects
  4. Create a prefab where Root element have Flexbox all nested elements doesn't
  5. Add prefab to layout
  6. Run the game
  7. On runtime the elements inside the prefab gets NaN in to posdition properties and sesappear from the canvas Here is the video with demonstration https://github.com/gilzoide/unity-flex-ui/assets/80062439/bb7316d3-179f-4932-95cc-c63c12393955

Snag_a03ade1

gilzoide commented 3 months ago

This likely has the same root cause as the problem described in #7.

gilzoide commented 3 months ago

Hey @timurproko, thanks for the report! I haven't tested your use case specifically, but I did test the case in #7 and fixed it in #11. Could please test branch bugfix/nan-positions-nonflex-children and tell me if it fixes your use case as well?

timurproko commented 3 months ago

Gil, I've conducted some tests, and it appears that the bug has been resolved. Thank you for your dedication and effort. I'll make sure to keep you informed if any further issues arise.

gilzoide commented 3 months ago

Nice! Thank you again for the report and the help ^^

timurproko commented 3 months ago

Hello Gil, I've discovered another problem and documented it here. https://github.com/gilzoide/unity-flex-ui/issues/18

On Sun, Apr 7, 2024 at 9:09 PM Gil Barbosa Reis @.***> wrote:

Closed #11 https://github.com/gilzoide/unity-flex-ui/issues/11 as completed.

— Reply to this email directly, view it on GitHub https://github.com/gilzoide/unity-flex-ui/issues/11#event-12384695728, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATC2PZ2TFM2KKKF5XWUGLELY4GDWPAVCNFSM6AAAAABE76KG7CVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGM4DINRZGU3TEOA . You are receiving this because you were mentioned.Message ID: @.***>

-- Regards, Timur Prokopiev +38 (050) 641 55 93