Question by 
               Meddon · Mar 02, 2017 at 04:50 PM · 
                scripting problemtextpanel  
              
 
              How to assign Text of a Panel child via Script on Panel
I'm on very novice level in unity/C#.
I wish to be able to enter a text as string and make the child of that object be assigned the text. Something like:
 using UnityEngine;
 using UnityEngine.UI;
 
 public class CardManager : MonoBehaviour{
 
 public string CardTitle;    
 
     private void Start()
     {
         GetComponentInChildren(Text).text = CardTitle;
     }
 }
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Accessing UI text 0 Answers
How do you change UI Text to an int? 4 Answers
NullReferenceException on Text element 1 Answer
Tooltip doesn't work 0 Answers
Code to replace the count commands in C# for text. 0 Answers