Search Unity

i want to give space for my layout element manually for particular element in a horizontal layout

Discussion in 'UGUI & TextMesh Pro' started by UNITY3D_TEAM, Apr 17, 2017.

  1. UNITY3D_TEAM

    UNITY3D_TEAM

    Joined:
    Apr 23, 2012
    Posts:
    720
    i want to change particular spacing for my layout element in horizontal layout group ui items.right now im giving space for all items groups as common but i want to change particular item manually from common spacing .please help me how to do that.in old gui u can able to change using gui.space in new unity ui how to give space for layout particular element .check video and images which i have added for refernce.please help me how to give space manully for my 4th element .thank you

    video link to download:cilck here
     
  2. mikael_juhala

    mikael_juhala

    Joined:
    Mar 9, 2015
    Posts:
    247
    You can attach LayoutElement component and set the minimum or preferred width. Another way is to add an empty objects (just a GameObject with RectTransform) into the layout to work as spacers.
     
    UNITY3D_TEAM likes this.