Search Unity

Problem in adding elements to grid layout on Runtime.

Discussion in 'UGUI & TextMesh Pro' started by taqiarzoo424, Apr 30, 2020.

  1. taqiarzoo424

    taqiarzoo424

    Joined:
    Mar 8, 2020
    Posts:
    23
    I'm working on grid layout with content size fitter.
    When I add button to grid it expand from both sides.
    I want to expand the container to Only down side.

    Here are screen shorts

    It's the screen without play nothing on screen.
    IMG_20200430_005801.jpg


    After play I'm getting this the middle part of container is visible not top said
    I have to scroll to top for view

    IMG_20200430_005835.jpg


    I want like this top part of container should be visible
    IMG_20200430_005717_HDR.jpg

    So plz
    Can any one tell me how to do it