Search Unity

Question Is there a way to dynamically set Grid Layout Group cell sizes from Children by UI Components?

Discussion in 'UGUI & TextMesh Pro' started by jmgek, Jan 17, 2024.

  1. jmgek


    Dec 9, 2012
    I have
    1. Canvas
    2. Grid Layout
    3. ChildA
      1. Image,
      2. Name
      3. Grid layout of Inventory [512x1024
    4. Child B
      1. Image
      2. Name
      3. Grid Layout of inventory [512x2048]
    5. Child c
      1. Image
      2. Name
      3. No Inventory

    Each child can have a different size inventory, is there any quick way to have the content in all my children dynamically handle the size to be able to set the Grid layout group the correct transforms for each child?