¸®½ºÆ®¸¦ ¼öÁ÷À¸·Î ½ºÅ©·Ñ ÇÏ´Â ¹æ¹ý¿¡ ´ëÇؼ ¾Ë¾Æº¸ÀÚ. ¾Æ·¡¿Í °°ÀÌ À̹ÌÁö¿Í ÅؽºÆ®¸¦ ¹èÄ¡ÈÄ ½ºÅ©·Ñ ÇÑ´Ù.
1. Canvas¸¦ ¸¸µç´Ù UI > Canvas·Î Á¦ÀÛÇÑ´Ù. 2. ScrollView¸¦ ¸¸µç´Ù.
3.Content¸¦ ¸¸µç´Ù.
Content Size Fitter Ç׸ñ¿¡ ´ÙÀ½°ú °°Àº ¿ö´×ÀÌ ¶á´Ù. ¿ö´×ÀÌ ¶°µµ ½ÇÇàÀº Á¦´ë·Î µÈ´Ù. ÂòÂòÇϱä ÇÏÁö¸¸ ÀÏ´ÜÀº ¹«½ÃÇÏ°í °£´Ù. "Parent has a type of layout group component. A child of layout group should not have a Content Size Fitter component. since it should be driven by the layout group." »óÀ§³ëµå¿¡ ScrollRect ÄÄÆ÷³ÍÆ®°¡ ÀÖ¾î¼ ¹ß»ýÇÏ´Â ¿ö´×ÀÌ´Ù. 4. ¸®½ºÆ®ÀÇ itemÀ» Ãß°¡ÇÑ´Ù.
4. ¸®½ºÆ®ÀÇ itemÀ» º¹»çÇÑ´Ù. Image ³ëµå¸¦ ¼±Åà ÈÄ Ctrl+D ´ÜÃàÅ°·Î ItemÀ» º¹»çÇÑ´Ù. ÂüÁ¶) SetPropertyUtility.cs ¼Ò½º https://github.com/tenpn/unity3d-ui/blob/master/UnityEngine.UI/UI/Core/SetPropertyUtility.cs ContentSizeFitter.cs ¼Ò½º https://gist.github.com/stramit/1ab43d48bfd5b0f37af4 |