Changing position of ScrollContent with TextLine
Posted: Fri Nov 20, 2020 5:58 am
Hi,
I'm new to Dialogue System and I want to use the TextLine asset to create a chat-like dialog system.
However I want the scrollContent to begin at the bottom of the scrollRect instead from the top, because I need the last dialog to always be at the same position on the last line.
I tried to play with the rectTransform position of the scrollContent and changed anchors to bottom instead of top, but after that when I try to change the posY value, it returns automatically to the initial value and the initial Rect stays on top.
I also tried to change the vertical layout group child alignment with no success.
Any help will be appreciated.
Thanks
I'm new to Dialogue System and I want to use the TextLine asset to create a chat-like dialog system.
However I want the scrollContent to begin at the bottom of the scrollRect instead from the top, because I need the last dialog to always be at the same position on the last line.
I tried to play with the rectTransform position of the scrollContent and changed anchors to bottom instead of top, but after that when I try to change the posY value, it returns automatically to the initial value and the initial Rect stays on top.
I also tried to change the vertical layout group child alignment with no success.
Any help will be appreciated.
Thanks