Android Layout Group and Content size Fitter problem

Good day.
i`m making text game for android. pretty new one in unity. Text Adventure game
What i need and what the problem?
Need: text should be scrollable and in the end of text there should be buttons from 1 to 5+ with different text inside from episod to episode(changed by scripts).

Problem: Scrollable Text should contain “content size fitter” for showing ALL text and dont cut it (Vertical fit - prefered size on “text” obj). also “Text” should have upper left “Anchor preset” position to lock text on the upper positions (not in the middle of a text). First problam - if i change screen proportions(from 3:2 to 16:10) to check how it works on others screens - width of the"Text" become incorrect(same as previous). How to make width locked for all Screens?
Second problem - when i add buttons as chield to the same Object as “Text” i also need add Vertical layout group to make buttons shown after text… but adding this layout brake “text” content size fitter and anchor presets… so i can`t make text start from upper part and its always show it in the middle (on the pivot)

some informations:
Hierarchy: Canvas → ScrollRect (image with “Scroll Rect” and “Mask” ) → Content (Vertical layout group) → Text ( “Content size fitter” with vertical fit ) + buttons

P.S. i`m sorry for my bad eanglish. Not a native but still lame excuse =(

Hi,

maybe few screenshots would help…

not realy sure whitch one screenshots can i add… but i`ll try.

  1. Text Size are huge(but will be different from episode to episode) and its strached by Content Size Filter (Vertical Fit). Also Text locked to upper left corner to let see user first line of the text from begine. at the bottom theres buttons. they should move up with text if user scroll it.
    3203374--244953--upload_2017-8-31_10-26-28.png
  2. thats parameters for ScrollRect
    3203374--244954--upload_2017-8-31_10-30-55.png

So the broblem is:

  • I need to make buttons move up with Text to be shown in the end… for it as i understand i need add some GO which will contain Text and buttons as children. Allso need add vertical layout group component for make them move together… but GO need same size as Text + Buttons to scroll properly… and this is a problem
  • Second problem is Text “width”. when i change screen proportions Text width are
    3203374--244955--upload_2017-8-31_10-38-52.png
    hope it will help