BUG 动态设置layout的spacingY,没有变化,正常吗
最好弄一个简单的测试 demo 发上来比较好
调用接口写错了 结贴
你的node对象.getComponent(cc.Layout).spacingX = -60