Comment accéder à un texte gameobjceet dans l'unité et le changer

Text text = gameObj.GetComponentInChildren(typeof(Text)) as Text;
text.text = "text stuff";
text.font = prefferedFont;
Successful Sandpiper