Search Unity

Question How to make UI change position depend on other UI element without making it as the child

Discussion in 'UGUI & TextMesh Pro' started by ArikaHoshino, Dec 29, 2022.

  1. ArikaHoshino

    ArikaHoshino

    Joined:
    Sep 14, 2020
    Posts:
    32
    View attachment 1172787

    Hi,

    The “PlayerChoiceRoot” is the lower box and has “Vertial Layout Group” and “Content Size Filter” so I cannot set the upper box “ConversentGroup” to its child and set anchor. Is there a way to make the upper box dynamicly moving as the size of lower box expand or shrink WITHOUT script?

    Thank you!
     
  2. ArikaHoshino

    ArikaHoshino

    Joined:
    Sep 14, 2020
    Posts:
    32
  3. TzuriTeshuba

    TzuriTeshuba

    Joined:
    Aug 6, 2019
    Posts:
    185
    can you just give them both a common parent and perform your movement/size changes to the parent?
     
  4. karliss_coldwild

    karliss_coldwild

    Joined:
    Oct 1, 2020
    Posts:
    602