Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Content Size Filter disregards TMP_Text in child object

Discussion in 'UGUI & TextMesh Pro' started by Kujji, Sep 26, 2023.

  1. Kujji

    Kujji

    Joined:
    Oct 20, 2021
    Posts:
    109
    I have a Horizontal Layout Group with 3 child objects with Image components: Like, Download, Favorite, each of these objects has a child object with a TMP_Text component and a Content Size FIlter to make the object grow in width when text is entered, I want to change the width of the text to change the size of its parent element (Like, Download or Favorite) and move the Horizontal Layout Group, I added a Content Size Filter to Like, but the size of Like did not take into account the text size of the child object.

    Hierarchy


    Characteristics


    After i add Content Size Filter to Like it becomes narrow and disregards Child object