Set Text Value in Scroll View?

I’m trying to figure out how to set the text value for a scroll view.

3918595--334198--upload_2018-11-22_13-10-57.png

Anyone have code snippets or video tut? I need to set it pragmatically.

assuming you have the game object named go holding the Text component.
you can call

var label = go.GetComponent<Text>();
label.text = "Your Text";

It doesn’t mater whether the game object is inside a scroll view or not.

Worked thanks.