• Responsive UI Pro
  • OnChange mode doesn't work using initially hidden hierarchies and prefabs.

dtappe the strange thing is that if you click on "cancel" the Directory object gets activated back, and there is no NaN value in the button text transform.
Only after the progress bar has completed, the same ToggleProcessingContainer() function is called and only then you get the NaNs

    Anthony I read a thread where people are having the same NaNs using Unity's layout components, so it might just be a bug on their end. I'm still investigating

      Anthony I'm not seeing NaN's anymore since I:

      • Fixed divide by 0 and negative value issues with CalculateSpaceBetweenItemsY, CalculateSpaceBetweenItemsX, CalculateFlexibleItemSpaceX, and CalculateFlexibleItemSpaceY.
      • Stopped mixing Responsive components with Layout groups and Rect Transform STRETCH.
      • Reverted all overrides on Canvas prefab instances.

      I have stopped using OnChange for now, but I can send you what I have changed based off v1.0.3, if you tell me where to send it.

        dtappe you're the man! Indeed I completely forgot that /0 you found.
        I fixed it on my side now and will publish an update asap.

        Thanks again for your help, I was looking in the wrong direction.

          Anthony OK. Just let me know if you want to see my changes. There was more than just the /0. I also added a simple hash return to GetChildrenFirstDepth, so that if one child was hidden and another made visible, thus the same childe count, but different children, could be detected to do a forced resize.

            dtappe that's a good point, especially if the two children don't have the same "responsive item" settings. Can you send me your changes by email at contact at exoa.fr ? I will have a look. Thanks

              Write a Reply...