如圖: 在button按鈕上添加Content Size Fitter組件和Horizontal Layout Group(或者是Vertical Layout Group)組件,勾上ChildControl Size就搞定啦~~