I’m trying to figure out how to set the text value for a scroll view.
Anyone have code snippets or video tut? I need to set it pragmatically.
I’m trying to figure out how to set the text value for a scroll view.
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.