Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Using a Grid with composite prefabs

Discussion in 'Editor & General Support' started by dogfacedesign, Nov 4, 2018.

  1. dogfacedesign

    dogfacedesign

    Joined:
    Jan 10, 2016
    Posts:
    70
    Didn't see a subforum for UI-related things, so posting this here instead. :)

    So I have a test grid set up, and it works fine with single items in each cell (image, text, etc.). But, if I try to put something in there like a prefab that has an image and a text label in it, it doesn't seem to work (they all sort of stack up on top of each other instead of being spread out in the grid).

    Is this normal behavior for the grid component? Thanks in advance for any suggestions/guidance!
     
  2. dogfacedesign

    dogfacedesign

    Joined:
    Jan 10, 2016
    Posts:
    70
    I should add that when I say "composite prefabs", I mean prefabs with more than one GameObject in it. For example:

    GameObject (just a Container or "row")
    ---- GameObject (Image)
    ---- GameObject (Text/Label)
     
  3. dogfacedesign

    dogfacedesign

    Joined:
    Jan 10, 2016
    Posts:
    70
    Egads! Turns out there is a subforum for UI. Just didn't see it at first. Can an admin delete this post? I will start it in the proper forum this time :)