Quantcast
Channel: Questions in topic: "parenting"
Viewing all articles
Browse latest Browse all 302

UI text not showing in my scrollView

$
0
0
I have a scrollview, that i am trying to display a piece of text inside. When the following code i get an object with a text component. It has the content as parent, but it doesnt appear when i run the program. Any help would be appriciated code: newGO = new GameObject("myTextGO"); newGO.transform.SetParent(this.transform); Text myText = newGO.AddComponent(); myText.text = "Ta-dah!";

Viewing all articles
Browse latest Browse all 302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>