******************************* EDIT **********************************
I think I have figured out how to fix this. Will remove this if the problem persists
******************************* END EDIT **********************************
I have a messaging box set up similar to any social media app’s messaging function.
The structure is as follows:
- PlayerChat (Horizontal Layout Group (Use Child Scale - Height), Content Size Fitter (Vertical Fit - Preferred Size))
- TextBoxContainer (Content Size Fitter (Horizontal Fit - Preferred Size, Vertical Fit - Preferred Size), Vertical Layout Group (Use Child Scale - Height, Child Force Expand - Height))
- TextBox (Content Size Fitter (Horizontal Fit - Preferred Size, Vertical Fit - Preferred Size))
It looks fine in the preview, but in practice, when I instantiate it into the game, it shows up like this:


with TextBoxContainer at 0px Height and TextBox and ProfilePictureContainer shifted to the left despite PlayerChat being in the correct position:
How do I fix this? I’ve tried several settings the past two days and couldn’t get it to work the way I want it to. Thanks! Images below of the settings for more details.





