0%

声明:本文为 jechyang原创文章,欢迎转载,请在明显位置注明出处。

开发过程中在集成ui的时候,有时会出现”Parent has a type of layout group component.A child of a layout group should not have a Content Size Fitter component, since it should be driven by the layout group“的warning,其实就是告诉我们,父节点已经有一个layoutGroup了,即使使用contentSizeFitter,也是应该父节点使用来控制子节点的size,那么这里是如何实现控制的呢,如何集成才能不出现这个warning呢,这里通过源码的阅读来解答这个问题。

Read more »