Vertical Layout Group changing scene on load

Hello and thanks in advance!

A scene in my project was asking me to save it every time I opened it and switched to any other scene. Even though nothing was changed whatsoever, it’d always say “Scene has been changed”. After enabling and disabling objects and components in different combinations and everything, I finally figured out that it was this particular component that was causing the issue.

Now, my question is very simple: Why the flying hell is this component causing this and what can I do about it?

PS: The component won’t cause the issue if it has no child to handle.

PSS: I realise this component is basically a script that runs even in edit mode, but if I didn’t change anything in the scene… I didn’t change anything in the freaking scene! So why did it?!

This happens when the child object of a (vertical / horizontal) layout group is a prefab. The original prefab will have different RectTransform values compared to the prefab in the scene (since it is dynamically adjusted), so I think the editor thinks there is a change with the prefab in the scene since it never has fixed values.

Applying the changes to the prefab will cause the constant saving prompt to go away.

Aspect Ratio Fitter will also cause a scene to be modified upon loading.