起源於下圖這個三角嘆號:
解決方法:
Scroll View --Viewport ----Content [Content Size Fitter] Vertical Fit: Preferred Size [Vertical Layout Group] Control Child Size: W/H Child Force Expand: W/H ------Prefab [Vertical Layout Group] Control Child Size: W/H Child Force Expand: W/H --------TMP --------Image [Layout Element] Min Height:20 --------TMP --------TMP --------TMP
來源於鏈接25樓:https://forum.unity.com/threads/layout-group-and-contentsizefitter-in-child.343082/
還有個聊天框顯示方案:https://stackoverflow.com/questions/53059487/unity3d-parent-has-a-type-of-layout-group-error
所以勾上 Control Child Size: W/H 試試