Open mpmxyz opened 6 months ago
I haven't figured out the exact requirements on the UIX layouts but if they are fulfilled it is guaranteed to break.
Please spend some more time to try and find exact replication conditions that cause this issue. The easiest way would be simplifying your replication item by removing parts of it bit by bit until you get the simplest possible item that still exhibits the issue.
I already spent hours simplifying but I gave it another go. You can't remove the following from the object:
LayoutElements
leading from the Canvas to a sibling of a single DestroyProxy
pointing to a slot containing a single RectSlotDriver
It doesn't need multiple DestroyProxy-instances and the single instance also doesn't need to be directly embedded in a Slot with a RectTransform
.
This is the url to the reduced object: resrec:///U-TheAutopilot/R-43375986-22db-408e-acd2-69212292b2a0
Thanks for further simplifying it/narrowing it down further, @mpmxyz. Seeking input from @Frooxius when he has time to look into this- this issue has everything it needs as far as I can tell.
Describe the bug?
Destroying multiple RectSlotDrivers via multiple DestroyProxy components can break Canvases. I haven't figured out the exact requirements on the UIX layouts but if they are fulfilled it is guaranteed to break. I noticed this after adding RectSlotDrivers to an existing project already using DestroyProxies.
To Reproduce
I have created an example: resrec:///U-TheAutopilot/R-e4229ae3-33ff-4e6f-95d3-a1dd24b3f1bf
Expected behavior
All affected slots should be destroyed and the Canvas be updated accordingly. In the given example that would mean that just the two buttons from the originally leftmost column would remain.
Screenshots
No response
Resonite Version Number
2024.4.18.1398
What Platforms does this occur on?
Windows
What headset if any do you use?
No response
Log Files
ANONYMOUS - 2024.4.18.1398 - 2024-04-21 21_47_40.log
Additional Context
I pressed F3 before and after the bug happened. The related exception is easy to find:
Reporters
No response