- Home /
Meaning of .text
What is the difference between Text and text in "GetComponent(). text"? Also, what does .text mean?
Answer by Vicarian · Jun 14, 2018 at 01:28 AM
Text (uppercase T) is a class. .text is a property. Do feel free to read up on C# on the MSDN.
Classes can store many fields and properties, while a property or field can only store a single variable value.
Thank you for your reply. When displaying characters with unity, is GetComponent (). text where Text is a class and .text is a character part?
The text property holds the characters in the form of a string, which is its variable type. Do research types as well on the $$anonymous$$SDN.
Your answer
Follow this Question
Related Questions
What is the diffrence between Reference and GetComponent ? 1 Answer
How does instantiate connect to rigidbody?,How does instantiate userigidbody without getcomponent? 1 Answer
Can I use GetComponents reference outside Of awake and start functions 1 Answer
How to update UI image mid-game (Unity, C#) 2 Answers
How to reference an inactive GameObject? 2 Answers