Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Undocumented New Layout Group Property "Use Child Scale" in Unity 2019

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by ryo0ka, Apr 23, 2019.

  1. ryo0ka

    ryo0ka

    Joined:
    Sep 27, 2015
    Posts:
    32
    I've noticed that LayoutGroups have got a new property called "Use Child Scale" which is not documented anywhere. As far as I've tested several things, I can't see any effects of it.

    Has anyone noticed it too and looked for the functionality?
     
  2. dirindon

    dirindon

    Joined:
    Dec 17, 2013
    Posts:
    1
    You must have missed it but its actually quite easy to notice. What it does apparently is quite simple yet effective. If you have any scale on objects inside your layout, instead of using width/height of those objects for the alignment it uses {width/height} * {xScale/yScale| for its calculations so even scaled objects now should appear and behave correctly